execute statements if condition is true
if expression
statements
elseif expression
else
end
the elseif and else blocks are optional
let us consider an example to find a large or less than a specific number.
If a = 5 then we will find the number a is less than 10 or not.
a = 5 if ( a < 10 ) disp ( ' number is less than 10 ' ) else disp ( ' number is large than 10 ' ) end
Output:
a = 5
number is less than 10
total contributions (1)
let us consider an example to find a large or less than a specific number.
If a = 5 then we will find the number a is less than 10 or not.
Output:
a = 5
number is less than 10