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

AVEVA™ Plant SCADA

QuickScript ​.NET Operators

  • Last UpdatedJul 13, 2023
  • 1 minute read

The following QuickScript .NET operators require a single operand:

Operator

Short Description

~

Complement

-

Negation

NOT

Logical NOT

The following QuickScript .NET operators require two operands:

Operator

Short Description

+

Addition and concatenation

-

Subtraction

&

Bitwise AND

*

Multiplication

**

Power

/

Division

^

Exclusive OR

|

Inclusive OR

<

Less than

<=

Less than or equal to

<>

Not equal to

=

Assignment

==

Equivalency (is equivalent to); not supported for entire array compares. Arrays must be compared one element at a time using ==.

>

Greater than

>=

Greater than or equal to

AND

Logical AND

MOD

Modulo

OR

Logical OR

SHL

Left shift

SHR

Right shift

The following table shows the precedence of QuickScript .NET operators:

Precedence

Operator

1 (highest)

( )

2

- (negation), NOT, ~

3

**

4

*, /, MOD

5

+, - (subtraction)

6

SHL, SHR

7

<, >, <=, >=

8

==, <>

9

&

10

^

11

|

12

=

13

AND

14 (lowest)

OR

The arguments of the listed operators can be numbers or equipment.item values. Putting parentheses around an argument is optional. Operator names are not case-sensitive.

QuickScript References

Parentheses ( )

Negation ( - )

Complement ( ~ )

Power ( ** )

Multiplication ( * ), Division ( / ), Addition ( + ),Subtraction ( - )

Modulo (MOD)

Shift Left (SHL), Shift Right (SHR)

Assignment ( = )

Comparisons ( <, >, <=, >=, ==, <> )

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