Top  | Previous | Next

Logic / try

try(expression, failover)

This expression is used to swallow errors caused by other expressions. The first expression will be executed, and if it executes successfully, its value will be used. However, if there is an error evaluating it, the value of failover will be used, with a data quality of 310 (EXPRESSION_EVAL_ERROR).

 

try(toInteger("boom"), -1)

... returns -1 with a quality code of 310