Evaluates a block of code if condition is a non-zero value. The end keyword is used to end the block of code.
This function can also be used with the else statement which will execute a different block of code if condition is zero for false.
The following comparisons are also typically used with If.
(Equal to) ==
(Not equal to) !=
(Greater than) >
(Greater than or equal to) >=
(Less than) <
(Less than or equal to) <=
Examples
n=5
if n>0
result="Positive"
else if n<0
result="Negative"
else
result="Zero"
end
result