Special Operators

Use special operators to create structure in your Gateway code and specify how Primavera Gateway should interpret and execute the expressions.

Operator

Name

Description

Applicable Data Types

Example

+

Concatenation

Combines a String with another data type, yielding a new String. String concatenation is applied when the leftmost operand of the + operator is of the data type String. The right operand can be a value of any type. When concatenated, Date values may not serialize in the format anticipated.

 

 

String

"Hello" + " World" //returns "Hello World"

"Lucky Number " + 7; //returns "Lucky Number 7"

"a" + 1 + 2 //returns "a12"

5 + "Hello"; //returns an error. To perform concatenation, the leftmost operand must be a String.

=

Assignment

Assigns a value of a supported data type to a variable.

All

def myVar = 50;



Legal Notices | Your Privacy Rights
Copyright © 2019, 2022

Last Published Thursday, August 25, 2022