Boolean values: Difference between revisions

Content added Content deleted
m (→‎{{header|Octave}}: added 0 and not-0 as usable for false and true)
m (→‎{{header|Metafont}}: only true and false can be used)
Line 101: Line 101:


=={{header|Metafont}}==
=={{header|Metafont}}==
Metafont has the type <tt>boolean</tt>; a boolean variable can be <tt>true</tt> or <tt>false</tt>.
Metafont has the type <tt>boolean</tt>; a boolean variable can be <tt>true</tt> or <tt>false</tt>. Using non boolean values (or expressions that do not evaluate to a boolean value) results in a recoverable error; by default, any non-boolean value is interpreted as false.


=={{header|Objective-C}}==
=={{header|Objective-C}}==