how to write a condition for to check input is integer or string?
by using if condition
Hi,
Use yourVariable.GetType.tostring
string input = "1234";
int value;
if (Int32.TryParse(input, out value))
{
// input is an integer
}
else
{
// input is not an integer
}
Hi @447_J_U_S_SANDEEP ,
Do you want to check if the data/content in the variable is only a number or not ? If so, then using IsNumeric
method should help you. You can use it like below in if Condition :
YourVariable.IsNumeric
please send me using activity code
please send me using activity code
In if condition box enter
IsNumeric(VariableName)
If it is going to then side then it will be integer otherwise string.