...
How you learned on the intermediate level use the set function, on this exercise we are going to put into practice on the first line.
${set(count,0)} |
---|
And below it you put the #{for comments} or #{for <VariableName>=CommentsCount} statement.
...
${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} |
Code Block | ||
---|---|---|
| ||
#{if (%{'${Comments[n].Body}'.equals('Hello Continue')})}
Jump the next comment.
#{continue}
#{end} |
Now, We are going to use the function continue with a conditional block, when the comment is equal a "Hello Continue".
Info |
---|
We must have comments on your issue and a comment with "Hello Continue". |
...