true (value)
The true value is a boolean "non zero". It is the only alternative to the boolean false value.
Suppose you want to attach the image pointer im to CImage object I. The example below shows 2 equivalent ways to test the returned value:
|
-- returns true if the im is attached. |
|
-- exit if bSuccess is not true |
Alternatively, the same result is accomplished by the following code:
|
-- returns true if the im is attached. |
|
-- exit if bSuccess is not true |