Double Braces functions
Learn about Double Braces, an expression language developed by Digibee that users can take advantage of in order to reference and manipulate data within a pipeline
You can use Double Braces functions to manipulate data in a pipeline.
Syntax
Double Braces functions are enclosed within two sets of curly braces and a blank space, with the function name followed by a list of parameters enclosed in parentheses, like this:
Double Braces functions are case-insensitive, but we recommend writing them in upper case as a best practice.
Nesting functions
You can use Double Braces function calls inside other functions, like this:
When you do this, the functions are executed from the inside to the outside. That is, in the example above, INSIDEFUNCTION
is executed first and its output is used as a parameter for OUTSIDEFUNCTION
, which is executed last.
Unlike programming languages, Double Braces expressions executes all functions at the same moment, regardless of whether the IF condition is true
or false
. This differs from programming languages, which usually execute functions only after checking the IF condition.
Example
Input
Double Braces expression
Output
Function list
Below, we have listed Double Braces functions by groups based on their usage.
COMPARISON
AND
NOT
OR
XOR
NUMERICAL
FORMATNUMBER
TODOUBLE
TOINT
TOLONG
TONUMBER
RANDOMNUMBERS
CONDITIONAL
EQUALTO
GREATERTHAN
GREATERTHANEQUAL
IF
LESSTHAN
LESSTHANEQUAL
ISOBJECT
ISARRAY
ISBOOLEAN
ISSTRING
ISNUMBER
ISNULL
SWITCHCASE
DATE
FORMATDATE
NOW
SUMDATE
TOISODATE
DIFFDATE
FILE
FILEEXISTS
FILESIZE
JSON
JSONPATH
TOJSON
UNESCAPEJSON
GETELEMENTAT
LASTELEMENT
REMOVEAT
NEWEMPTYOBJECT
NEWEMPTYARRAY
PUSH
POP
CARDINALITYONE
CARDINALITYMANY
MATH
ABS
CEIL
DIVIDE
LOG
MAX
MIN
MOD
MULTIPLY
POW
ROUND
SQRT
SUBTRACT
SUM
STRING
CAPITALIZE
CONCAT
ESCAPE
INDEXOF
JOIN
LASTINDEXOF
LEFTPAD
LOWERCASE
MATCHES
NORMALIZE
REPLACE
RIGHTPAD
SPLIT
SUBSTRING
TOSTRING
UPPERCASE
CONTAINS
DEFAULT
UNESCAPE
TRIM
STRINGMATCHES
RANDOMSTRINGS
UTILITIES
BASEDECODE
BASEENCODE
UUID
TOBOOLEAN
SIZE
BASEURLDECODE
BASEURLENCODE
URIDECODE
URIENCOD
Was this helpful?