The CreatorCon Call for Content is officially open! Get started here.

"continue" syntax for Jelly script's "while" looping

alinatoc
Giga Contributor

Would actually address this question to those with experience in scripting/programming.

There are cases when you want to skip to next looping iteration using continue; syntax in programming.

What jelly script syntax do you use to do such approach?

Example:

<j:while test="...">

    <j:continue />

</j:while>

Is there such thing? (i.e. <j:continue>) Thanks in advance.

1 ACCEPTED SOLUTION

HV1
Mega Guru

There is no continue jelly tag. However the workaround is the include IF tag (<j:if test=""></j:if>) inside your while loop to run the code block if the condition meets, else the IF block skips and while continues to next record.



- Hardik Vora


View solution in original post

1 REPLY 1

HV1
Mega Guru

There is no continue jelly tag. However the workaround is the include IF tag (<j:if test=""></j:if>) inside your while loop to run the code block if the condition meets, else the IF block skips and while continues to next record.



- Hardik Vora