EQWatcher Evolution > Scripting > Identifiers
An EQWatcher identifier is a constant number. This number is used by value rather than reference, contrary to constants, and therefore the EQWatcher interpreter has no idea that any identifiers were defined. Identifiers may be used in place of a numeric value in any expression. Commands that require numeric values and will not accept variables (such as file handling), will accept identifiers.
Identifiers are identical to using numbers directly (i.e. 1, 2, 3, 4) rather than a variable (i.e. x, y, z). A good use for identifiers is for making easy to remember, or easily recognizable, names for arbitrary numbers (for instance, you do not need to know the real value of SND_WAVE, but it is definitely a number).
An identifier is defined as follows:
identifier [name] [value];
identifier true 1;
identifer false 0;
These (true and false) are default identifiers and do not ever need to be explicitly identified in any script. Other default identifiers include:
SND_WAVE, SND_CD, SND_MP3, SND_TTS, SND_ALIAS, SND_SYNCWAVE, and SND_SYNCTTS
PRI_LOWEST (0), PRI_EVENLOWER (32), PRI_LOWER (64), PRI_NORMAL (128), PRI_HIGHER (192), PRI_EVENHIGHER (224), and PRI_HIGHEST (255)