Talk:IfElse

From Multi Theft Auto: Wiki
Revision as of 00:55, 17 May 2009 by Talidan (talk | contribs) (New page: There's little use for this, as far as i can tell. Lua supports this by its syntax sugars: moo = (variable) and (ifTrue) or (ifFalse) works the same as moo = (varible) ? ifTrue : ifFa...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There's little use for this, as far as i can tell. Lua supports this by its syntax sugars:

moo = (variable) and (ifTrue) or (ifFalse)

works the same as

moo = (varible) ? ifTrue : ifFalse

in C++.