Advanced Flows Script Variable loading Code?

I want to make a script were i need to “load” variables like currentprice.

I chose the “Then Card” “start script with argument” i select the argument over the Label button.

but what code i need to use to “load” the argumet ?

ChatGPT cant help at all

EDIT AFTER SOLUTION: the [0] was missing

In short, aren’t you saying you need the value of some tag in a flowcard?
(tag = system/app variables, variable = user managed variable)

Thanks for the answer but

No not inside A Flowcard. Inside a Script coded in Advanced Flow setup not inside the app. Im asking for the javascript code.ö

Any answer Chatgpt gave me Ended in Errors like “unknown argument”

Got it (I hope :winking_face_with_tongue: ). To pass that argument to the Homeyscript code in the card, you’d use

const argumentName = args[0];

ok the [0] was the missing Part that i didnt find or got from ChatGpt

1 Like

It’s also in the example code in a new card, but not in the clearest way