Vikari Language Documentation


Available since:  v0.8.0.

Boolean Type

The Boolean type encompasses the literal values true and false. This type inherits from Value. The Boolean type is the return type of logical operator expressions. It is used to evaluate and process boolean logic and comparison expressions.

Examples

The following demonstrates use of the The Boolean type.

~:Assignment statements:~
foo << true          ~:Untyped variable:~
foo:Boolean << false ~:Typed variable:~
foo:Boolean << null  ~:Null Boolean variable:~
foo << bar ^ true    ~:Result of a logical expression:~
foo << bar = 7       ~:Result of a comparison expression:~

~:Print statements:~
:true:
:[foo " false]:
:[bar = 3.14]: