Boolean values: Difference between revisions

Content deleted Content added
Added Cherrycake Language
Chkas (talk | contribs)
Line 905: 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.
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".
You can use 1 or 0 in place of true and false.


<syntaxhighlight lang="easylang">
<syntaxhighlight lang="easylang">
boolNumber = 1
boolNumber = 1
if boolNumber = 1
if boolNumber = 1
print "True"
else
print "False"
.
boolString$ = "true"
if boolString$ = "true"
print "True"
print "True"
else
else