if statements in roblox code example
Example 1: roblox else if
if 25 > 100 then
print("25 is greater than 100")
elseif 25 > 50 then
print("25 is greater than 50")
elseif 25 > 10 then
print("25 is greater than 10")
end
Example 2: roblox if then
if 2 + 3 == 5 then
print("Two plus three is five")
end