Macro Arguments
- Last UpdatedJul 18, 2023
- 1 minute read
The Cicode macros use the following arguments.
TagName
The name of the tag you would like the IFDEF macro to confirm the existence of. The Plant SCADA compiler will check the current project database for a tag matching this name.
[<value if defined>]
Defines the outcome of the macro if the specified tag exists in the current project. This argument is optional, which means you can:
-
Generate any variable, constant, or expression.
-
Generate the current value for the specified tag by leaving the argument blank.
<value if not defined>
Defines the outcome of the macro if the specified tag does not exist in the current project. This will generate any variable, constant, or expression, including a blank string (" ") if you want nothing to be presented.