A variable initially defined in a rule or match action's main pattern cannot be used in its main condition.

#2096   Compile-time error

A variable initially defined in a rule or match action's main pattern cannot be used in its main condition.

Additional Information

The pattern variable is 'X'.

Recovery

Compilation continues but no compiled source code file will be saved.

Explanation

Although the main condition appears spatially in the OmniMark program after the pattern-matching part, it may be consulted before the pattern is attempted. This also applies to each block of actions in a scan action that is preceded by the match keyword, a pattern, and a condition. However, references to pattern variables that exist before the match keyword are permitted in the main condition.