entity is

operator

Return type:
Switch
Returns:
Returns true if the current entity has the specified properties. Replacing is with isnt reverses the result.
Syntax
entity is (entity category | entity category set)
    


Purpose

entity is tests whether the active entity of the currently-active parse has the specified properties. A single property can be provided, or many properties can be combined, separated by | or &. Replacing is with isnt will reverse these results.

The allowable properties are

The properties can be combined by joining them with either | or & to yield an expression testing several properties at once. For example, to test that an entity is an external entity with a public identifier, use

  do when entity is (external & public)
     ; ...
          

Similarly, to test that an entity is either a CDATA entity or an SDATA entity, use

  do when entity is (cdata-entity | sdata-entity)
     ; ...
          

Related Syntax
Related Concepts