Exclusive Or [XOR]

Returns True if there is an uneven number of True logical arguments.

In the case of two arguments: either one or the other is true, but not both.

Syntax

XOR (Logical1, [Logical2},...)

Note: The required separator (comma or semi-colon) automatically corresponds to your computer’s location settings.

Data Types of the Arguments

True/False

Data Type of the Result

True/False

Example

Office decor items of various sizes must be boxed up. Three box sizes are available.

Items whose height and width are both more than 1m go in the large boxes.

AND (Width > 1m, Height > 1m)

Items whose height and width are both less than 1m go in the small boxes.

AND (Width < 1m, Height < 1m)

Items with either height or width is more than 1m go in the medium boxes.

Use a property to determine which items require the medium sized box.

Expression

XOR (Width > 1m, Height > 1m)

Result

True for all items whose width OR height (but not both) exceeds 1m.

  • Was this Helpful ?
  • YesNo
Relevant topics
Connect GRAPHISOFT ID with License
Connect your personal GRAPHISOFT ID accounts to your GRAPHISOFT ID Company to access Software Service Agreement (SSA)-exclusive benefits.