Syntactical substitution

To simplify the TGKML script reading and maintenance , it is possible to use syntactical substitutions, namely to define a sort of "alias" of a given expression. Once a syntactical substitution is defined, it can be called several times in the script by using the operator "@".

The syntax to use for defining a syntactical substitution is the following:

: {list of elements separated by comma}

For example, it is possible to write

  • MyDest2Filter : {Dest2.Filter([XY], [01|03])};
  • MyFilter : {Dest1.Filter ([D11],[D12]), Entity.Filter([A00]), Dest2.[GEN]};
  • NA : {Entity.[NA], Dest1.[NA], Dest2.[NA], Dest3.[NA],Dest4.[NA]};

Generally, the syntactical substitutions definition is performed on the top of the script so as that they can be found easily.

Once a syntactical substitution is defined, it can be called using as syntax

@

for example:

....:=[C00000](@MyFilter);

[LO].[X00000](@NA) := … ;