Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

Continue

FOR コマンド、または DO WHILE 文にジャンプし、条件を再評価してループします。

Synopsis

Continue Do
Continue For

引数

Continue Do 文と Continue For 文に、引数はありません。

概要

Continue Do 文または Continue For 文は For 文または Do While 文に続くコード・ブロック内で使用します。Continue Do 文または Continue For 文により、実行が For 文または Do While 文へ戻り、条件式が評価されます。また、その評価に基づいてコード・ブロックのループが再実行されます。

以下の例は、Continue 文の使用法を示しています。

For i = 1 to 10
  If i = 5 Then
  Continue For
  Println i
  End If
Next

関連項目

FeedbackOpens in a new tab