Skip to content

How can I do a counter when iterating over results? #119

Closed
@IronBrotherz

Description

@IronBrotherz

I want to output something like:

#1 10,000
#2 12,000
#3 56,000

But I have no idea how to do a counter with my loop. Right now I have

        {% for sale in sales %}
        <p>{{sale.amount}}</p>
        {% endfor %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions