Boolean values: Difference between revisions
Content added Content deleted
(Added Scala) |
m (→PowerBASIC: rephrased explanation a bit) |
||
Line 306: | Line 306: | ||
=={{header|PowerBASIC}}== |
=={{header|PowerBASIC}}== |
||
In addition to what's noted above under [[#BASIC|BASIC]] |
In addition to what's noted above under [[#BASIC|BASIC]], [[PowerBASIC for Windows]] and [[PowerBASIC Console Compiler]] have the <code>ISTRUE</code> and <code>ISFALSE</code> functions. According to the help file, they "return the logical truth or falsity of a given expression". ([[PowerBASIC]] lacks a boolean data type, so the usual practice is to use integers in [[PB/DOS]], and longs in [[PB/CC]] and [[PB/Win]].) |
||
<lang powerbasic>DIM x AS LONG |
<lang powerbasic>DIM x AS LONG |