<< abort Control flow case >>

Scilab Help >> Scilab > Control flow > break

break

ループ中断を表すキーワード

説明

for または while ループの中で, コマンド break は ループを強制的に終了します.

k=0;
while 1==1,
      k=k+1;
      if k > 100 then
         break
      end;
end

参照

履歴

VersionDescription
6.0.0 break is now protected: Assignments like break=1 are no longer possible.

Report an issue
<< abort Control flow case >>