|
false (value)
The false value is a boolean "zero". It is
the only alternative of the boolean
true. Data and Methods can use the value false
as a test or flag value.
Examples
Suppose we want to attach the image pointer
image to
a
CImage object I. The following
script tests whether Attach was
successful:
|
bSuccess = I:Attach(
image )
|
|
|
if bSuccess == false then
Exit() end
|
|
Alternatively, the same result may be obtained by
simpler, more compact code that does not test against false:
|
bSuccess = I:Attach(
image )
|
|
|
if not bSuccess then Exit()
end
|
|
Related Topics
true
nil
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|