Standard Library: Bool

Work with boolean values

For more information on booleans see the language reference.

  1. toNum

Bool.toNum(boolean)

Convert true to 1 and false to 0.

Bool.toNum(false)
Bool.toNum(true)
0
1