esProc offers a series of operators and related functions to perform general computations.
Ø ${ } |
Macro |
Generate a new sequence by combining distinct members of two sequences in order, without performing distinct on same members |
|
Ø %,\ |
Divide two long integers/real numbers and get the remainder or an integer result |
Generate a new sequence by merging members of two sequences (or two single values) in a certain order; common members appear only once |
|
Ø &&,||,! |
Logical operations |
Compute a series of expressions in sequence, and return the result of the last expression; each expression is allowed to reference the variable value computed by the previous expression for value assignment |
|
Ø * |
Generate a new sequence by duplicating members of a sequence |
Generate a new sequence by performing Arithmetic Operations, Mod operation or integer division between members in the same position in two sequences which are of the same length, such as alignment addition, alignment subtraction, alignment multiplication, and so on. |
|
Ø +,-,*,/ |
Signs of the four arithmetic operations |
Ø -a |
Opposite number |
Comparison operations |
|
Ø A.eq() |
Judge if a given sequence can be generated by adjusting positions of the members of another sequence |
Ø \ |
Generate a new sequence by removing members (or the single value) of sequence B from sequence A |
Ø ^ |
Get a new sequence composed of common members of two sequences |
Ø a=x |
Assign the result of an expression to a variable and return this result |
Ø a?=x |
Compound assignment |
Check if a parameter value is within a specified interval |
|
Ø case() |
Return the corresponding value of the expression that satisfies the specified condition whose value is equal to the result of a specific expression |
Ø cmp() |
Compare the values of two expressions or two sequences |
Ø cmps() |
Compare values of parameters |
Ø eval() |
Dynamically parse and compute the expression |
Ø f@o(…) |
The function syntax that a function is computed with different options |
Ø if() |
Return different values according to different results of a Boolean expression |
Ø a+b |
Concatenate strings |
Ø a/b |
Concatenate a string and a non-string |
Ø | |
Concatenate two sequences or single values to generate a new sequence |