automa icon indicating copy to clipboard operation
automa copied to clipboard

Increase variable not working

Open LinggaID opened this issue 1 year ago • 8 comments

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

LinggaID avatar Feb 29 '24 04:02 LinggaID

Hi I have the same problem. Have you found a solution or is it a bug?

utilisateuralpha avatar Jun 27 '24 16:06 utilisateuralpha

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)

arkadiuszdom avatar Jul 03 '24 10:07 arkadiuszdom

Hi,

I found out it has changed since last year to $$counter and so far worked for me

Image

Floeig avatar Apr 29 '25 12:04 Floeig

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: @.***>

LinggaID avatar Apr 29 '25 12:04 LinggaID

no no you can use $$something if you want

Floeig avatar Apr 29 '25 15:04 Floeig

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: @.***>

LinggaID avatar Apr 30 '25 01:04 LinggaID

I agree, I had to change mine to make it working

Floeig avatar May 01 '25 09:05 Floeig

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)}}.

Doped-Si avatar Jun 15 '25 08:06 Doped-Si