Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

if (pre-process)

  • Last UpdatedNov 05, 2023
  • 2 minute read

Use the if (pre-process) command to create a sort of pre-processing behavior.

  • Code inside the If node is parsed at scripting loading time, only if its condition is verified.

  • The condition operates only on define.

Note: This is different than the other if (command), which is used only inside command nodes and is evaluated at command execution time.

Platform support

This element is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P WASM platforms.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Code example

This is a code example for the If (pre-process) element.

<if condition="@def:load.section01@">

<include name="user\E801.xml"/>

<include name="user\T801_NEW.xml"/>

<include name="user\E1304.xml"/>

<include name="user\T1401.xml"/>

</if>

Position

The if (pre-process) element must be inside a context node, such as Context or Global.

Fields

These are the fields for if (pre-process) command.

Fields

Type

Use

Default value

Description

condition

sstring

Optional

Not set

Can apply a condition to the parameter value assignment.

In This Topic
TitleResults for “How to create a CRG?”Also Available in