Operator_AndRight Method

Used to overload the And function, providing custom functionality.

Syntax

# Notes

Create an Operator_AndRight function in a class to specify the functionality of the And operator for that class. Operator_AndRight is the same as Operator_And except that the Self instance is on the right.

The ordinary methods are always preferred; REALbasic uses the Right versions only if there is no legal left version.

# Example

Suppose you define a class myResult with the property a as Boolean. Operator_AndRight is defined as:

Function Operator_AndRight(lhs as MyResult) as Boolean
Return lhs.a And Self.a

# See Also

And operator, Operator_And function.