Or operator: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Flurite No edit summary |
>Flurite No edit summary |
||
Line 11: | Line 11: | ||
Output: | |||
> soul is always true | > soul is always true | ||
</pre> | </pre> |
Revision as of 19:10, 9 July 2011
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 Output: > soul is always true