If statement
✏ Beginners Scripting Guide ✏
CONDITION OPERATIONS
First example:
if 1 > 0 then -- This will check if 1 > 0 or not.
-- Code block in here will be executed when condition(s) are/is met
print('1 is greater than 0')
endSecond example:
if not 1 > 3 then -- This will check if 1 > 3.
-- The statement is false but we use the "not" to flip that false to the opposite value which is true.
print('1 is greater than 0')
endLast updated