RAD Studio
ContentsIndex
PreviousUpNext
or, ||

Category 

Alternative Representations of Operators and Tokens, Operators 

Syntax 

Description 

The or operator is an alternative representation of the || operator ( logical OR). 

Only two statements can be evaluated at a time. 

or returns true if two values are different, such as 2 or 6. 

or returns false if both values are the same, such as 10 and 10. 

In order to use the or operator, you need to check the Enable new operator names option (the -VM compiler switch, available on the Compatibility page of the ProjectOptions dialog box).

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!