NXLog Docs

Variables

A module variable can only be accessed from the same module instance where it was created. A variable is referenced by a string value and can store a value of any type.

In NXLog language there is another, simplified syntax for using module variables. Similar to the $ notation for fields, it is possible to access module variables with the $$ notation. In that case, the variable name is not dynamic but in return, the value can be manipulated the same way as NXLog fields.

$$ival_1 = 10;
$$ival_2 = $$ival_1 + 200;
$$str = string($$ival_2);

The $$ notation is directly supported by the foreach(expr, $$key) NXLog language construct.