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

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