Lava Filters - AsDecimal
Category:Other
Description:Converts the input to a decimal value.
Input: "Workflow": {
"Miles": "5.0001"
}
Lava: {% assign miles = Workflow | Attribute:'Miles' | AsDecimal %}
{% if miles > 5.0 %}
{{ miles }} is more than 5.
{% else %}
Less than 5 miles.
{% endif %}
Output: 5.0001 is more than 5.