Number

Processes the Databox value as numeric.

Processes the Databox value as numeric. If the Databox value is non-numeric, this expression will not work.

Expression
Databox Value
Result
Comments

Number > 12

12.34

True

Processes the Databox Value as Numeric and asks whether the Value is greater than the specified number – in this case 12

Number Format("F2")

12.3456

512.3

Will round to specified decimal places (“F2”)= 2 decimal places

Example

Numeric Expressions can be used in a variety of ways from quite simple maths to more advanced arithmetic. This allows a ‘behind the scenes’ approach to scripting; to only ask the necessary questions and to let the scripting do the work.

For example, let's work out whether an applicant for a mortgage rescue scheme has secured debt over the 120% criteria.

With just three Questions and Expressions, we can direct the script to ask the next question, knowing that the answer has already been worked out ‘in the background’ - (the last Message shows the Values of the Databoxes):

Collecting the information
The GreaterThan Databox & Expression
The PropertyValue Databox & Expression
The TotalMortgage Databox & Expression
The TotalSecured Databox
Message in the editor
The result...

Last updated