question

Robert Hambright avatar image
1 Like"
Robert Hambright asked Matthew Gillespie commented

How do I create a label that increases its value by 1 each time?

Hello.

How can I create a label (by using a source on creation trigger) that assigns a bigger number each time an item is created? For example, item 1 gets label value of 1, item 2 gets label value of 3, item 3 gets label value of 3, etc.

Thanks!

labels
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matthew Gillespie avatar image
3 Likes"
Matthew Gillespie answered Matthew Gillespie commented

Here's an example of how you could do it. I added a "counter" label to the source and then use a couple of the OnCreation pickoptions to first increment the counter label and then assign that value to a label on the item.


· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

In this case, you could actually scrap the counter label and just set a label on the item equal to getoutput(current) + 1, since the source keeps track of how many things have left it.

2 Likes 2 ·
Robert Hambright avatar image Robert Hambright commented ·

Perfect. Thank you!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.