automa
automa copied to clipboard
Increase variable not working
Describe the bug Increase variable not working. I have variable "ncounter", then just simply use trigger > increase variable to variable name $$ncounter, applied it several time, but no change
Hi I have the same problem. Have you found a solution or is it a bug?
Hi,
I have the same problem. I came up with the following workaround - I am using a JavaScript block, with a code modifying a variable:
automaSetVariable('$$counter', automaRefData('variables', '$$counter') + 1)
Hi,
I found out it has changed since last year to $$counter and so far worked for me
So it only works with that variable name?
On Tue, Apr 29, 2025, 8:37 PM Florian @.***> wrote:
Floeig left a comment (AutomaApp/automa#1666) https://github.com/AutomaApp/automa/issues/1666#issuecomment-2838610274
Hi,
I found out it has changed since last year to $$counter and so far worked for me
image.png (view on web) https://github.com/user-attachments/assets/68b475d6-32cb-4e7a-a659-15b5be10c184
— Reply to this email directly, view it on GitHub https://github.com/AutomaApp/automa/issues/1666#issuecomment-2838610274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVD5RTTOP7XBF4EOLVOYQGT235W5TAVCNFSM6AAAAAB4C3U35CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZYGYYTAMRXGQ . You are receiving this because you authored the thread.Message ID: @.***>
no no you can use $$something if you want
It was success, but the time I raised this, it is not running like before, the variable not increased nor decreased
On Tue, Apr 29, 2025, 11:09 PM Florian @.***> wrote:
Floeig left a comment (AutomaApp/automa#1666) https://github.com/AutomaApp/automa/issues/1666#issuecomment-2839284112
no no you can use $$something if you want
— Reply to this email directly, view it on GitHub https://github.com/AutomaApp/automa/issues/1666#issuecomment-2839284112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVD5RTQ4IL3RALSHDB4T3MD236I37AVCNFSM6AAAAAB4C3U35CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZZGI4DIMJRGI . You are receiving this because you authored the thread.Message ID: @.***>
I agree, I had to change mine to make it working
I have been able to use a workaround to increment variables in the current (June 15 2025) version 1.29.10. Rather than using the Increase Variable block I use the Insert Data block, with the following as the value to be inserted into the "Count" variable: {{$increment([variables.Count],1)}}
For the original poster, you would use an Insert Data block that updates the value of ncounter with {{$increment([variables.ncounter],1)}}.