Most of the times, references look as follows:
<namespace:variablename>
or
<namespace:variablename=defaultvalue>
The latter example can be used to fall back to a default value in case a Reference cannot be resolved.
<notes:userdetails_internetaddress=>, for example, would fall back to an empty value if a user's internet address can not be read from the public addressbook (e.g. when a user is offline).
<ini:ExitNotesPrompt=0>, for example, would return "0" (without quotes) if no such ini entry exists.
Referencing Actions
When referencing other Actions, MarvelClient allows you to specify a so called type of execution.
In the above examples, the colon (:) defines how a reference affects possible execution of an Action - in addition to using a colon, a reference also allows for other types of execution:
<namespace[type_of_execution]variableName>
There are three types of execution (all to be specified without brackets):
Types of Execution for Referencing Actions | ||
---|---|---|
: (colon) | = Run Once.
| |
! (exclamation mark) | = Run Always.
| |
| (pipe) | = Never Run. Use result only if already executed. Example: Action A references result from Action B using a colon (=make sure it runs). Action C then references the result from Action B again using a | (=use result from Action B if it ran). In case a user can not see or execute Action A, Action C will not run in this example, as the result from Action B cannot be resolved. |
NOTE that whilst referencing anything other than Actions (e.g. os: or notes:, env: or ini:) also allows for the use of all three types of execution, this does not affect re-calculating any results. |
You are advised to only use a colon (:) for normal config variable references, as the behaviour for ! and | may change in future releases.
See Also
About References and Placeholders
References - Namespaces
References in References
Special References to Desktop Icon Actions