BuildGraph Script Conditions

Learn syntax to write BuildGraph script conditions.

Windows
MacOS
Linux

If you want to build logical complexity into your BuildGraph scripts, you'll need to work with conditionals. The following section introduces you to how BuildGraph conditions are written, including a list of conditional operators.

Conditions

BuildGraph script conditions consist of atoms and operators that evaluate to true or false.

Atoms

Atoms can be numbers, strings, or identifiers that are coerced to their appropriate type for the oprator using them. Atoms may be quoted with single (') or double (") quotes. They can also be an unquoted sequence of letters, digits, and underscore characters. All atoms are considered the same type, regardless of how they're declared. Additionally, atoms are considered case-insensitive for comparisons, which means that the strings "True" and 'true' are identical to the identifier true (despite the presence of quotes and differences in case).

Operators

A list of operators is specified below:

Operator

Description

Precedence

(x)

Subexpression

1

!x

Not operator

1

Exists(x)

True if the x file exists.

1

HasTrailingSlash(x)

True if x ends with a slash or backslash.

1

x == y

Tests two atoms for equality (case insensitive).

2

x != y

Tests two atoms for inequality (case insensitive).

2

x < y

Compares whether the integer x is less than the integer y.

2

x <= y

Compares whether the integer x is less than or equal to the integer y.

2

x > y

Compares whether the integer x is greater than the integer y.

2

x >= y

Compares whether the integer x is greater than or equal to the integer y.

2

x and y

True if both arguments are true.

3

x or y

True if either argument is true.

4

The '<' and '>' characters must be escaped as "&lt;" and "&gt;" in XML.

Select Skin
Light
Dark

새로운 언리얼 엔진 4 문서 사이트에 오신 것을 환영합니다!

문서 사이트에 대한 의견을 모을 수 있는 피드백 시스템을 포함해서 여러가지 새로운 기능을 준비하고 있습니다. 아래 Documentation Feedback 포럼(영문) 또는 언리얼 엔진 네이버 공식 카페(한글) 중 편하신 곳에 의견이나 문제점을 알려 주세요.

새 시스템이 준비되면 알려 드리겠습니다.

네이버 카페
공식 포럼