Or operator: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Flurite
New page: 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 a...
>Flurite
No edit summary
Line 1: Line 1:
<pre>
soul = true
soul = true
food = false
food = false
Line 9: Line 11:


> soul is always true
> soul is always true
</pre>

Revision as of 19:05, 9 July 2011

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