Boolean

Boolean is a type that allows variables to have the values true and false,[1] and is therefore used to represent truth. Control statements such as if, while, and repeat until accept boolean expressions, which they use to decide whether or not they will execute their bodies.[2] Booleans are operated on by the logic operators.

References

  1. Ierusalimschy, Roberto (March 2006). Programming in Lua. p. 29. ISBN 8590379825.
  2. Ierusalimschy, Roberto (March 2006). Programming in Lua. p. 49-50. ISBN 8590379825.
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.