Boolean values: Difference between revisions
Content added Content deleted
Line 2,196: | Line 2,196: | ||
=={{header|SenseTalk}}== |
=={{header|SenseTalk}}== |
||
True, Yes, and On are true; False, No, Off and Empty (an empty string) are false. |
True, Yes, and On are true; False, No, Off and Empty (an empty string) are false. |
||
<lang sensetalk>repeat with each item of |
<lang sensetalk>repeat with each item of [True, False, Yes, No, On, Off, ""] |
||
put it is true |
put it & " is " & (it is true) |
||
end repeat |
end repeat |
||
</lang> |
</lang> |
||
{{out}} |
|||
<pre> |
|||
True is True |
|||
False is False |
|||
Yes is True |
|||
No is False |
|||
On is True |
|||
Off is False |
|||
is False |
|||
</pre> |
|||
=={{header|Sidef}}== |
=={{header|Sidef}}== |