Translations:Help:Lua/Lua best practice/80/en

Lua does not have a ternary conditional operator (?:), but you can do the same with an  and an   operator. What goes on is although a little mysterious to newcomers to Lua. The logical operators  and   pass on truthy values (materialized values), and thus they can be part of other expressions than just logical ones.