Or statement: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875
New page: The or statement comes in handy when you want to check one of the listed values is a certain value. <pre> soul = true food = false try = false if soul == true or food == true or try == t...
 
>SoulStealer9875
New page: The or statement comes in handy when you want to check one of the listed values is a certain value. <pre> soul = true food = false try = false if soul == true or food == true or try == t...
(No difference)

Revision as of 17:40, 9 July 2011

The or statement comes in handy when you want to check 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
    print 'soul is always true'
end