Structure and definition of an advanced selection script

An advanced selection script:

  • starts with the key word "TGKML 1.0";
  • can contain one or more instructions. Each instruction ends with the character ";" and assigns a given content to a variance. This content can be:
  • a string of text;
  • a number;
  • one or more logic functions or operations. This instructions can contain any previously defined classifier;
  • the element of a dimension or node;
  • a set of values (text, numeric or dimension elements)

The syntax of an instruction is:

variable_name := content;

The number of instructions that can be defined in a script is unlimited. All the classifiers are "local" and therefore they can be referred only within the same script. The name of a classifier cannot correspond to the name of the objects belonging to the script language (for example, the dimensions name, the functions name, ...).

The script syntax is not sensitive to the upper-case letters, therefore it is not possible to define two classifiers whose names differ only for one upper-case or lower-case letter.

  • it can contain one or more comments identified by the symbol // at the beginning of the row. The characters that follow the symbol // up to the end of the row are ignored. The possible comments can be inserted in any point of the script
  • only one classifier is used by the system to get the result of the script. This classifier is predefined in the script and is named result. This classifier is mandatory and no other classifier can be defined below. The content of this classifier must be of dimensional type.