Boolean values: Difference between revisions
Content added Content deleted
imported>KayproKid (Added S-BASIC example) |
imported>KayproKid m (→{{header|S-BASIC}}: fixed minor formatting issue) |
||
Line 2,462: | Line 2,462: | ||
end |
end |
||
</syntaxhighlight> |
|||
</systaxhighlight> |
|||
����� |
|||
In this case, <code>0.bool</code> is false, and <code>n.bool</code> with n not equal to 0 is true. |
In this case, <code>0.bool</code> is false, and <code>n.bool</code> with n not equal to 0 is true. |
||
Line 2,493: | Line 2,493: | ||
is False |
is False |
||
</pre> |
</pre> |
||
=={{header|Sidef}}== |
=={{header|Sidef}}== |
||
Sidef defines the ''true'' and ''false'' boolean values, which are part of the ''Bool'' type. |
Sidef defines the ''true'' and ''false'' boolean values, which are part of the ''Bool'' type. |