LassoScript Utility
Basics Browse Detail

[Math_Range]

Tag Link [Math_Range] Category Math
Type Substitution Source Available Yes
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Description

[Math_Range] normalizes an integer or decimal value so that it is within a given range. The tag takes three parameters a value, a -Min, and a -Max. If the value is less than the minimum then the minimum is returned. If the value is greater than the maximum then the maximum is returned. Otherwise, the value is returned unchanged.

Syntax

[Math_Range: Value, -Min=1, -Max=10]

Parameters

Required Parameters
Integer/Decimal The value to be adjusted.
-Min The minimum possible value.
-Max The maximum possible value.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.