Cloud Workflow Operators

(see https://docs.rightscale.com/ss/reference/rcl/v2/ss_RCL_operators.html#collection-and-array-operator)

The Cloud Workflow Language supports a variety of operators for manipulating values and resource collections. There are arithmetic operators for calculations (+, -, *, /, ^, %), collections and array management operators for retrieving and adding elements as well as checking inclusion ([ ], <<, <, >), the usual equality and boolean operators (==, !=, <, >, <=, >=, &, |, !) as well as the regexp operator for match strings with regular expressions (=~, !~). For more information on the operators and their semantics, see Operator Semantics.

The following table lists the precedence of cloud workflow operators. Operators are listed top to bottom, in descending precedence.

Cloud Workflow Language Operator Precedence

Precedence

Operators

Notes

0

[]

slice operator (retrieve item(s) of array, hash or collection given an index, key or range)

1

^

exponent

2

!, +, -

logical not, unary plus, unary minus

3

*, /, %

multiplication, division, modulo

4

+, -

addition or string, array or collection concatenation - subtraction or array collection difference

5

<<

array append

6

==, !=, =~, !~, >=, <=, >, <

relational and equality operators

7

&

bitwise AND

8

|

bitwise OR

9

&&

logical AND

10

||

logical OR