Using !loop as a variable

Hi, i was using !loop as a variable in storeEval so that one particular field gets incremental value during each loop play, but since the recent update today i am unable to do so, any help would be appreciated.

“Command”: “storeEval”,
“Target”: “${!LOOP}+1215”,
“Value”: “CCC”
},
{
“Command”: “type”,
“Target”: “id=referenceNumber”,
“Value”: “${CCC}/04”
},

i was previously using
{
“Command”: “storeEval”,
“Target”: “${!loop}+470”,
“Value”: “CCC”
},
but got error –
[error]

Error in runEval code: Unexpected token ‘{’

so i had used back tick

but now error is —

[error]

Error in runEval code: LOOP is not defined.

thanks

storeEval is deprecated. Use ExecuteScript_Sandbox instead and use Number () to convert string to integer:

ExecuteScript_Sandbox | return Number (${!loop})+470; | CCC

2 Likes

thanks, it worked------------