Booleans
A boolean is a data type that can be either true
or false
, and it is used to represent a logical value.
Syntax
A boolean is defined by the keywords true
or false
.
Examples
~main<argc><argv>{<
is_student = true;
is_teacher = false;
println<format<"{} is a student, and {} is a teacher"><is_student><is_teacher>>;
>}
Output:
true is a student, and false is a teacher