Unanswered question

to extract with switch to advanced mode

I want to display the value for $1$ and $2$
i did in function Javascipt
var myVar1 = context.variableManager.getValue("Sc01_Ext_test_1");
var myVar2 = context.variableManager.getValue("Sc01_Ext_test_2");
var myVar3 = context.variableManager.getValue("Sc01_Ext_test1");
var myVar4 = context.variableManager.getValue("Sc01_Ext_test2");

logger.debug("ComputedValue="+myVar1);
logger.debug("ComputedValue="+myVar2);
logger.debug("ComputedValue="+myVar3);

But the result is always null how I can do to have the value of 1 and 2 separate?
thanks

Omar S.
Omar S.

Omar S.

Level
0
12 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

${myvar_n} is the syntax to get the n occurrence. In your case you would like to get the group 1 or 2. In that case you need to use that syntax: ${myvar_g1} or ${myvar_g2}