Boolean values: Difference between revisions

m
(Added Cherrycake Language)
Line 905:
EasyLang does not have built-in boolean types or constants. Operators that "return" a boolean type (e.g. >, <=) cannot be used outside of conditional statements and loops.
 
You can use 1 or 0 in place of true and false, or you can just use the strings "true" and "false".
 
<syntaxhighlight lang="easylang">
boolNumber = 1
if boolNumber = 1
print "True"
else
print "False"
.
boolString$ = "true"
if boolString$ = "true"
print "True"
else
2,053

edits