Articles in this section

Operators and Functions

DomEL provides the following operators, listed in order of precedence. Operators higher in this list are evaluated before operators lower in the list:

Operator

Syntax

Description

multiply, dividei * j / kArithmetic operators for numeric types only.
percenti % jCalculates i as a percent of j; numeric types only.
add, subtracti + j - kArithmetic operators for numeric types only.
equali == jComparison operators for string, numeric, and date types.
not equali != j
less thani < jComparison operators for numeric and date types only.
less than or equali <= j
greater thani > j
greater than or equali >= j
IN seti IN ('apples','oranges')Sets can be of any type.
IN rangei IN (j:k)Ranges must be numeric or date types.
NOTNOT( i )Boolean operators. Parentheses are required for 
NOT.
ANDi AND j AND k
ORi OR j OR k
parentheses()Used for grouping.

DomEL also defines the following operations as functions:

Function

Syntax

Description

startsWithstartsWith(i, 'prefix')Comparison operators for strings.
endsWithendsWith(j, 'suffix')
containscontains(k, 'substring')
concatconcat(i, ' and ', j, ...)Returns the string of all parameters concatenated.
testProfileAttribute1testProfileAttribute (table_ID.field_ name,'profileAttribute')table_ID.field_name is the table name and 
field name of the field you're comparing to a profile attribute. This argument can also be an 
expression, such as a concatenation of fields. It cannot be a constant or a Groovy call. 
profileAttribute is the name of the user profile attribute.

Additional functions are supported in Ad Hoc views.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.