thanks @DusX
I indeed did a mistake in my first attempt with if statement and then jump to Juriaan solution with the switch without spending much time on my first attempt.
So the "or" operator works properly in the "if" statement when properly repeating the condition each time (well explained by Juriaan in his second comment)
While the switch case like in @Juriaan first comment doesn't work because switch doesn't take "or" operator ( as explained here ) , instead, you must do something called a "fall-through":
function main()
{
var step = arguments[0];
switch(step){
case 'seq1A':
case 'seq1B':
case 'seq1C':
return 1;
case 'seq2A':
case 'seq2B':
return 2;
default:
return 100;
}
}
I've got it mixed up by trying several solutions in parallel without understanding the specificities of each one, but it's all working now.
Thanks for your help, I've learned something today! 🙂