Talk:IfElse: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...)
 
mNo edit summary
Line 1: Line 1:
There's little use for this, as far as i can tell.  Lua supports this by its syntax sugars:
There's not really any use for this, as far as i can tell.  Lua supports this by its syntax sugars:


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

Revision as of 00:57, 17 May 2009

There's not really any 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++.