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

AVEVA™ XR Studio

ifdef

  • Last UpdatedAug 21, 2023
  • 2 minute read

The ifdef command is the define for the if (pre-process) command.

The if element creates a sort of pre-processing behavior. The code inside the if node is parsed at scripting loading time, only when the referenced define exists.

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 ifdef element.

<ifdef name="load.section01">

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

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

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

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

</ifdef>

Position

The Ifdef element must be inside a context node, such as Context or Global.

Fields

These are the fields for ifdef command.

Fields

Type

Use

Default value

Description

name

sstring

Mandatory

Not set

The define to check existence.

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