Boolean values: Difference between revisions

Content added Content deleted
No edit summary
Line 404: Line 404:


=={{header|NetRexx}}==
=={{header|NetRexx}}==
NetRexx inherits boolean arithmatic directly from the [[Java]] virtual machine with the exception that the <code>true</code> and <code>false</code> keywords are not defined to the language.
NetRexx inherits boolean arithmetic directly from the [[Java]] virtual machine with the exception that the <code>true</code> and <code>false</code> keywords are not defined to the language.
Defining <code>true</code> and <code>false</code> variables can lead to name collisions during compilation so a simple expedient is to define boolean functions <code>isTrue</code>
Defining <code>true</code> and <code>false</code> variables can lead to name collisions during compilation so a simple expedient is to define boolean functions <code>isTrue</code>
and <code>isFalse</code> to return the appropriate values.
and <code>isFalse</code> to return the appropriate values.