how to end statement roblox code example
Example 1: how to end if statement roblox
-- exits the current scope
if (condition) then
return
print("Hello World!")
end
-- code won't print anything
Example 2: roblox if then
if 2 + 3 == 5 then
print("Two plus three is five")
end
Example 3: roblox if statement
local test = 1
if test > 4 then
print('Test is greater than 4')
end