Skip to content · ⁨コンテンツへスキップ⁩
English

CASE OF picks one branch

  • A CASE runs the branch whose value matches the variable.
  • Branches are tested in order. The first match runs, and the rest are skipped.
  • OTHERWISE is the branch for every other value. It comes last.
日本語

CASE OF は1つの分岐を選択する

  • CASE は変数の値と一致する分岐を実行します。
  • 分岐は順序通りにテストされます。最初の一致が実行され、残りはスキップされます。
  • OTHERWISE はそれ以外のすべての値のための分岐です。最後に置きます。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP