Expressions and procedures

An expression is a combination of identifiers and operators that can calculate a single value. A simple expression can be a variable, a constant, an attribute, or a scalar function. You can use operators can be used to join two or more simple expressions into a complex expression.

Examples of expressions are:

'Miller'
uConcat("Time ", "goes by")
(uMid(SA_ORDERDATE, 1, 10) >= '1998-01-01')
[uTracelevel(3)]

A procedure is a programming unit that includes expressions, statements, and control structures. You can write procedures in JavaScript, for example:

if (IN.PR_PRICE < 250)
       OUT.PR_GROUP2 = 'low end' ;
else {
    if (IN.PR_PRICE < 1000)
       OUT.PR_GROUP2 =  'mid range';
    else 
       OUT.PR_GROUP2 = 'high end'; 
}