Hi Team,
I have a basic doubt, a variable which contains an integer value.
How to find that the value is a negative or a positive number ?
Thanks,
Robotics
Hi Team,
I have a basic doubt, a variable which contains an integer value.
How to find that the value is a negative or a positive number ?
Thanks,
Robotics
Use an If statement and check if the variable is less than 0.
E.g., if var
is your variable, then the condition is var < 0
.