Convertigo Public Knowledge base

Use multi-valued variables in Sequence

Multi-valued variables are considered as JavaScript Arrays.

For example, a multi-valued Sequence variable named myMultiVar can be accessed in a SequenceJS Step as follow:

for(var i = 0; i < myMultiVar.length; i++){ log.warning(myMultiVar[i]); // code snippet }

It is possible to use a jIterator Step whose Expression is myMultiVar. You have access to the current object value with the JS item variable and index gives you the current index in the Array.

 

(c) Convertigo 2023 https://www.convertigo.com