Set Global and Assign do not work in Flow

Wappler Version: 6.1.2 stable
Operating System: Windows 11
Server Model: Capacitor

Expected behavior

Adding values in Assign and Set Global in Inline Flow should work.

Actual behavior

I’m not entirely sure if the Assign or Global are properly set, but the end result is as an error. If I set a static value in the Assign it works, but if I put a param or another dynamic expresion in it, then it throws the error shown below.

Here I am setting an Alert directly with the two params and then also adding the numbers together. It works perfectly. Next, I’m assigning the Assign variable and then attempting to show it in an alert. This results in the error.

This is the first alert
image

This is the error for the second alert
image

How to reproduce

See workflow above

Keith is kind of weird…
I noticed that alert needs a string value, otherwise it throughs an error.
Try to Alert the nextThreadIndex.toString() or in your case
(nextThreadIndex +1).toString()

Thanks, Tasos. I’ll try tomorrow and let you know the outcome.

1 Like

it works for sure brother