トップ  >  MQL4リファレンス  >  基本  >  処理  >  continue処理
スポンサーリンク
検索

↑の検索エンジンが表示されない人は、
↓の古い検索エンジンを使用して下さい。
カスタム検索
MQL4リファレンスツリー
continue処理


continue処理は最も近くにある外側のwhile,do while,forのループ処理の始りに戻ります。
continue処理の目的は変数が特定の値になった時に次のループ処理を行う事です。
サンプルソース:

    int icount;
    
    for ( icount = 0; icount < 5 ; icount++) {
        if( icount == 2) {
            continue;          // ループ処理の始めに戻る
            Print(icount);     // continue処理によりループ処理の始めに戻る為、表示されない
        }
        Print(icount);      // ループ処理により、0,1,3,4が表示される
    }
    Print("forループ終了");





スポンサーリンク
スポンサーリンク


Copyright ©2015 MT4でEA自作しちゃお~ All Rights Reserved.


Top

inserted by FC2 system