Search

November 30, 2023

NumberOrZero

Force a value to a number, else produce a 0

 

If you have a scenario like this:

«SetV(‘test’,Input)»
«NumberOrZero(GetV(‘Input’))»

And in the interview, «Input» happens to be given the value of 123 then the output on the document will be 123.

However, if the value is ‘abc’ then the output on the document will be 0.