Or statement

From Legacy Roblox Wiki
Redirect page
Jump to navigationJump to search

Redirect to:

The or statement comes in handy when you want to check if one of the listed values is a certain value.

soul = true
food = false
try = false

if soul == true or food == true or try == true then -- If any of the three comparisons are met, then continue with the code block
    print 'soul is always true'
end


> soul is always true