if <条件式> then 内部ブロック [ elseif <条件式> then 内部ブロック ]* # 0 回以上記載 [ else 内部ブロック ]? # 0もしくは1回記載 end
if x == 10 then Console << "x == " << x << "\n" elseif x < 10 then Console << "x < " << 10 << "\n" else Console << "x > " << 10 << "\n" end
# 前置条件型 while <条件式> 内部ブロック end # 後置条件型 do 内部ブロック end while 条件式
# 前置条件型 while x != 10 x = x + 1 end # 後置条件型 do x = x + 1 end while x != 10