Get item number after refresh screen

Hi Community,
i met a simply question when record score of a game, but i can't solve it. As attached photo, i click the button, the item number will be displayed in order, such as 1,2,3,4,5,...., but if i Refresh Companion Screen or Initialize again, it displayed from beginning as #1.
How can i get the result as 1,2,3,4,5,6,7.....even i Refresh or Initialize again?
I am new to AI2, so maybe my blocks were too complicated.
I appriciate anyone who can help me to solve my question, thank you very much!

  1. Use add item to list instead of insert item
  2. You will need to save your last Number to tinydb as well in order to continue counting...

You can save the previous number under another tag, but you could also just do this:

ok, thanks! I will try it.

Hi there, thank you very much for your answer, it is very helpful and the answer is really what i wanted. I highly appreciate you with your so fast reply to me, thanks again!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.