Boolean values: Difference between revisions

Content added Content deleted
(Add min)
(Added Dyalect programming language)
Line 518: Line 518:


The standard <code>Boolean</code> type has two values: <code>True</code> and <code>False</code>, with <code>Ord(False) = 0</code> and <code>Ord(True) = 1</code>.
The standard <code>Boolean</code> type has two values: <code>True</code> and <code>False</code>, with <code>Ord(False) = 0</code> and <code>Ord(True) = 1</code>.

=={{header|Dyalect}}==

Dyalect has a standard <code>Bool</code> type with two values: <code>true</code> and <code>false</code>. Other types in Dyalect support implicit conversion to booleans. All values except <code>false</code>, <code>nil</code>, <code>0</code>, <code>0.0</code> and empty string are converted to <code>true</code>.


=={{header|Dylan}}==
=={{header|Dylan}}==