OR Operator (|)

This command is optional.

Indicates a conditional choice for one or more tokens.

Example

<root> = <GivenName><FamilyName> |

<FamilyName>;

<GivenName>= @Table("Given Names") | @RegEx("[A-Za-z]+");

<FamilyName>= @Table("Family Names");

Note: The vertical bar | is ISO Latin 1 0x7C and is the usual character used for OR. However, on keyboards in some countries, a similar character (¦) exists, which ISO Latin 1 (0xA6). This character is frequently confused with the vertical bar so the grammar syntax treats either character as the symbol for OR.

To use this command:

  1. Position the cursor where you want the command inserted.
  2. Double-click | in the Commands list.