/MEng/Boolean

ClassPath:MEng.Boolean
Parent ClassPath:MEng.Formattable
Copyable:Yes
Final:Yes

MEng.Boolean represents a true/false value. It can only have the values True or False. Many methods return a Boolean value to indicate success or failure or some other status. Most flow control structures, If, While, etc... operate on Boolean values.

 

Constructors:

Constructor();
Constructor([In] MEng.Boolean InitVal);

There is one default constructor, which will set the initial value to False, and a constructor that takes an initial value.

 

Final, Const Methods:

And([In] MEng.Boolean SrcVal) Returns MEng.Boolean;
operator&
(
    [In] MEng.Boolean Src1
    , [In] MEng.Boolean Src2
)   Returns MEng.Boolean;

These methods allow you to do a logical AND operation on two Boolean values.  They will AND the two objects and return the result, leaving both objects unchanged. They do the same thing, and are only syntactically different. 

Or([In] MEng.Boolean SrcVal) Returns MEng.Boolean;
operator|
(
    [In] MEng.Boolean Src1
    , [In] MEng.Boolean Src2
)   Returns MEng.Boolean;

These methods allow you to do a logical OR operation on two Boolean values.  They will OR the two objects and return the result, leaving both objects unchanged. They do the same thing, and are only syntactically different. 

Xor([In] MEng.Boolean SrcVal) Returns MEng.Boolean;
operator^
(
    [In] MEng.Boolean Src1
    , [In] MEng.Boolean Src2
)   Returns MEng.Boolean;

These methods allow you to do a logical XOR operation on two Boolean values.  They will XOR the two objects and return the result, leaving both objects unchanged. They do the same thing, and are only syntactically different. 

 

Final, Non-Const Methods:

AndEq([In] MEng.Boolean SrcVal);
operator&=([In] MEng.Boolean SrcVal);

These methods allow you to do a logical AND operation on two Boolean values.  They will AND the left hand object with the passed source value, updating the left hand object's value with the result Boolean result. They do the same thing, and are only syntactically different.

Negate();

Negates the value of this object. I.e. if the current value is True, it will be changed to False, and vice versa.

OrEq([In] MEng.Boolean SrcVal);
operator|=([In] MEng.Boolean SrcVal);

These methods allow you to do a logical OR operation on two Boolean values.  They will OR the left hand object with the passed source value, updating the left hand object's value with the result Boolean result. They do the same thing, and are only syntactically different.

XorEq([In] MEng.Boolean SrcVal);
operator^=([In] MEng.Boolean SrcVal);

These methods allow you to do a logical XOR operation on two Boolean values.  They will XOR the left hand object with the passed source value, updating the left hand object's value with the result Boolean result. They do the same thing, and are only syntactically different.