Files
wren/doc/site/modules/core/bool.markdown

20 lines
357 B
Markdown
Raw Normal View History

2015-01-18 15:36:36 -08:00
^title Bool Class
Boolean [values][]. There are two instances, `true` and `false`.
[values]: ../../values.html
2015-01-18 15:36:36 -08:00
2015-03-27 07:43:36 -07:00
## Methods
2015-01-18 15:36:36 -08:00
### **!** operator
Returns the logical complement of the value.
:::wren
System.print(!true) //> false
System.print(!false) //> true
2015-01-18 15:36:36 -08:00
### toString
The string representation of the value, either `"true"` or `"false"`.