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

Lua does not have a binary conditional operator (??), or “nullish coalescing operator”, but you can do the same with 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.