Skip to main content
Skip table of contents

Global parameters


Global parameters

Each parameter of a logic has the characteristic "global" or "local", which is set in the parameter table.

Local parameters are only available within the compound in which they were defined, whereas global parameters retain their value throughout the process of logic - even if the compound is left.

In order to access a parameter in multiple compounds, it is defined with the same name in each compound PT with the global property. This results in the same parameter being addressed in each case. The same applies to the definition of parameter groups.

Please note: During a function call from the group TDV (p $ TDV: ...) there will be also be a compound transition. All parameters that are accessed from there must therefore be global.

A parameter (or group of parameters) should always be defined globally if exactly this parameter should also be available in other compounds. The following rule of thumb is generally valid:

·All "direct" compound parameters should generally be local, so that the independence of the logics is guaranteed.

·All compound parameters that are to be accessed in other compounds must be defined globally.

·All parameter groups should generally be global, since they are often needed in other compounds.

When determining parameter values, local parameters override global parameters, i.e. if a global parameter P1 exists in compound A, and a compound B that also contains a parameter P1 - but locally - is called within compound A, then only the local parameter P1 is visible within compound B, whose value has nothing to do with the "other" P1.

Within compound A, however, only the global P1 is "visible", because the local P1 is "destroyed" after the end of compound B (return).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.