Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

${set(count,%{${count} + 1})}

Let's put the mappings that we want to print on the template.

Author

${Comments[n].AuthorFullName}
Body${Comments[n].Body}

Now, We are going to use the function continue with a conditional block.

#{if

(%{'${Comments[n].Body}'.equals('Hello

Continue')})}

Jump

the

next

comment.

#{continue}

#{end}

When the comment is equal a "Hello Continue" it is going to print the message "Jump the next comment" and the iteration goes to the next iteration.  

Info

We must have comments on your issue and a comment with "Hello Continue".

Below the code above, we are going to put a conditional block that only print the message "Next comment", when the count of our set funciton is less than CommentsCount.

...

Now, We are going to use the function break with a conditional block.

#{if

(%{'${Comments[n].Body}'.equals('Hello

Stop')})}

Finish

the

iteration

of

comments.

#{break}

#{end}

When the comment is equal a "Hello Stop" it is going to print the message "Finish the iteration of comments" and the iteration goes to stop.

...