Boolean

Type Boolean
Library none
Keywords boolean, true, false

Overview

true or false.

In logical expressions, nil evaluates to false.

Ternary operations

Lua does not have a ternary operator. There are alternatives that (almost) produce the same functionality as explained here.