execute search syntax
Custom Operators
Type | Operator | Example |
Numerical Operators | +-*/:basic operators | (-1 + 50*2 ) / ( 2^4 ) |
Boolean operators | ~, xor : operators | Â Â Â !(A && (B < 10))Â |Â NOT ( A XOR ( B equals C ) ) |
String operators | == : 2 strings equals | "string1" == "string2"Â : false |
List operators | + : Concat two lists | (1,2)+(3,4) = (1,2,3,4) |
Other operators | = : set a variable operator | A = [ 2 - A ] * 2  2² |
Conditional operators | if then | if ( A > 2 ) then ("Ok") |
Custom functions | Described below | Â |
Â
Custom Functions
Name | Description | Function signature |
format | Formats decimal number. Default format is #.##. | format (n) - returns the decimal number n in the format '#.##'. |
number | Parses string to number (double). | number (s) - parses the string v as a double. |
timeformat | Formats a number as date/time string. Default time format is "MM/dd/yyyy HH:mm:ss.SSS". | timeformat (n,f) - formats the double value n to the date/string f |
mapput | Puts a key/value pain in a map. If the given map was not declared prior to this function, then this function creates it. Note: the function returns the result map. | mapput (m,k,v) - returns the new map m after putting the value v using the key k. mapput(m,m2) - Returns the new map m after putting the map m2 in it. |
mapget | Returns a value from a map using a key. | mapget (m,k) - returns the value in m to which the key k is mapped. |
mapkeys | Returns all the map's keys. | mapkeys (m) - returns all the keys of map m. |
mapvalues | Returns all the map's values. | mapvalues (m) - returns all the values of map m. |
mapremove | removes a mapping from a map using a key | mapremove (m,k) - removes from the map m the mapping for key k, if present. |
listget | returns the element in a list at a specified position | listget (l,i) - returns the element at position i in list l. |
Â
Custom Aggregation Functions
Name | Description | Function Signature |
aggAvg | returns the aggregated average value of a parameter. | aggAvg (p) - returns the aggregated average value of given parameter p. |
aggSum | returns the aggregated sum value of a parameter. | aggSum (p) - returns the aggregated sum value of given parameter p. |
aggSum | returns the aggregated sum value of a parameter. | aggSum (p) - returns the aggregated sum value of given parameter p. |
aggMax | returns the aggregated max value of a parameter. | aggMax (p) - returns the aggregated max value of of given parameter p. |
aggMin | returns the aggregated min value of a parameter. | aggMin (p) - returns the aggregated min value of given parameter p. |
mapAggAvg | returns aggregated avg map | mapAggAvg (k,v) - returns map that each value v is aggregated avg result |
for given key k. | Â | Â |
mapAggSum | returns aggregated sum map | mapAggSum (k,v) - returns map that each value v is aggregated sum result for given key k. |
Â
Custom Basic Functions
- random - A random value from 0 to 1.
- strlen -Â Compute the length of a string.
- sqrt -Â Square root .
- avg -Â The average of the arguments.
- cos - Cosine with a radian argument.
- acos -Â Arc cosine with a radian argument.
- asin -Â Arc sine with a radian argument.
- atan -Â Arc tan with a radian argument.
- exp - Compute the euler's number e raised to the power of the argument.
- floor - the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical  integer.
- int -Â Convert the double argument to integer.
- logn -Â Natural logarithm in n base : logn( BASE, VAL).
- log 10 -Â Natural logarithm in 10 base.
- log - Natural logarithm in e base.
- pow -Â The first argument power the second one.
- prod -Â The product of the arguments.
- round -Â The closest long to the argument.
- sin - Sine with a radian argument.
- tan -Â tan with a radian argument.
- degTorad -Â Convert angle from degrees to radians.
- radTodeg -Â Convert angle from radians to degrees.
Â
Complete syntax can be found here:Â http://www.japisoft.com/formula/doc/index.html
Â