Skip to content

Points

The Points object represents a value of loyalty points.

classDiagram
  direction LR
  class Points{
    bool isZero
    float points
    string formatPoints
  }

It is possible to render the value of the points by rendering the object directly.

source
{{ points }}
output
123.10 

Properties

Attribute name Type Description
isZero bool Indicates if the points value is zero.
points float The value of the points.
formatPoints string Formatted value of the points.

Examples

isZero property

{% if not points.isZero %}
  {{ points.formatPoints }}
{% endif %}
123.10

points property

{{ points.points }}
123.10

formatPoints property

{{ points.formatPoints }}
123.10 pts.