Text EN Version 1.90

Variables

Description

Unlike in the Notes @Functions language, variables in the Engine can be redefined any number of times.
They do not have to be declared or typed. The type and value of a variable may change at any time.
This means that a variable can repeatedly be assigned a different value.

There is no "SET FIELD" as in the Notes @Functions language. Fields in a document are treated like all other variables; they are only assigned to a document through a VStack (for example, Name[noteh], where noteh is the note handle of the document; see, for example, @OpenNoteByID).

Variables must begin with a letter, Underline (_) or dollar sign ($).
Variable names may consist of letters, digits, underscore, umlauts and the dollar sign.

Local variables:
Local variables are specified in processing (PROCRESS, IMPORT IDF) without a variable group.

Examples:
X:="ABCD";
@LogReport(X);
NichtLokal[GLOBAL]:=Test;
NichtLokal[MAIN]:=Test;

The variables X and Test are local variables.

Global variables:
Global variables are accessed using the GLOBAL variable group.

GLOBAL is global only within one task (another task cannot access these variables).
SHARED means global across all tasks.

Examples:
X[GLOBAL]:="Test Global";
Test[GLOBAL]:=12345;

The variables X and Test are global variables.

Variables that belong to a NOTEHANDLE / a variable group:
The NOTEHANDLE / the variable group is specified in square brackets.

Examples:
XYZ[noteh1]:="ABCDEF";
Test[Gruppe]:=12.12;

The variables XYZ and Test belong to a variable group or to a NOTEHANDLE.

Note : This text was machine-translated and may contain inaccuracies.