if
Basic Usage:
var x = 10
# Using 'if' to check a condition
if x > 5 then
show("x is greater than 5.")
endExplanation:
Else Clause:
var x = 3
# Using 'if' with 'else' to handle alternate case
if x > 5 then
show("x is greater than 5.")
else
show("x is not greater than 5.")
endExplanation:
Elif Clause (Else If):
Explanation:
Nested 'if' Statements:
Explanation:
Last updated