/
Use multi-valued variables in Sequence
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.
Related content
How to address a step variable in JS expression?
How to address a step variable in JS expression?
More like this
Execute a sub Sequence asynchronously
Execute a sub Sequence asynchronously
More like this
How to pass data parameters to a Sequence on onSubmit event of a form?
How to pass data parameters to a Sequence on onSubmit event of a form?
More like this
Shuffle an Array in a Sequence
Shuffle an Array in a Sequence
More like this
Call a variable from CustomAction component
Call a variable from CustomAction component
More like this
Call a sequence automatically when the application is starting and not using an onclick button
Call a sequence automatically when the application is starting and not using an onclick button
More like this
(c) Convertigo 2023 https://www.convertigo.com