Livecode Wiki
Advertisement

You can use next or in navigation or in a repeat control structure:

Navigation[]

Designates the card following the current card.

Syntax:

next

Examples:

go next marked card

Use the next keyword to move forward in the stack or to object reference the card after the current card.

If you are already on the last card, the next card is the first card in the stack.

Next repeat[]

Skips the rest of the current iteration and goes back to the top of the repeat structure.

Use the next repeat control structure to skip part of a repeat loop.

The next repeat control structure skips the rest of the current iteration, and continues to the next iteration. The following example performs the loop action only if the current card's name contains the letter "e" :

repeat for the number of cards of this stack
  go to next card
  if "e" is in the short name of this card then 
      next repeat
  end if
  put the short name of this card & return after myCardsList
end repeat

Usually, next repeat is used within an if control structure, so that the current iteration is skipped if a condition is true and continues if the condition is false.

See also: stack (object), repeat

Advertisement