Bool

Three equivalent pairs of boolean values are as follows.

  • true, yes, on
  • false, no, off
true, yes, and on evaluate to 1, while false, no, and off evaluate to zero. Thus you can code test functions as follows:
if (task()->isStartDataAvailable())
{
    //do something
}
Note: 'true' and 'false' are compiler keywords in the z/OS 1.2 C/C++ compiler and will not be generated by ICCGLBEH when using this compiler, or any later version.


hicc014.html | Timestamp icon Last updated: Monday, 5 June 2017