boolean, true, false
true or false.
In logical expressions, nil evaluates to false.
Lua does not have a ternary operator. There are alternatives that (almost) produce the same functionality as explained here.
© 2017 Corona Labs Inc. All Rights Reserved. (Last updated: 23-Feb-2019)
Help us help you! If you notice a problem with this page, please report it.
Report an Issue