If the data type od
Result
is
string
:
Use the
int32
TryParse
method[
^] or the
float
TryParse
method to figure out the type of your value.
E.g.
bool result = Int32.TryParse(Result, out number);
So you can use
if (Int32.TryParse(Result, out number))
{
}