hyTags
HomeHome DocumentationDocumentation

loop-continue

Skips the rest of the current loop iteration and continues with the next iteration.
Parameter
Type
Description
return
void
No return value.
Test Case:Continue skips to next iteration
    <div></div>
    
    <array-sequence start="1" count="3">
    <var-set name="sum">
      <number-new value="0">
    </var-set>
    <array-loop>
      <loop-get-index>
      <number-is-equal other="1">
      <if-true>
        <loop-continue>
      </if-true>
      <var-update name="sum">
        <number-add value="1">
      </var-update>
    </array-loop>
    <var-get name="sum">
    <assert-equal value="2" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed