Skip to content · ⁨Pular para o conteúdo⁩

Selection: CASE · ⁨Seleção: CASE⁩

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.
Português

CASE OF seleciona um ramo

  • Um CASE executa o ramo cujo valor corresponde à variável.
  • Os ramos são testados em ordem. O primeiro match executa, e os demais são pulados.
  • OTHERWISE é o ramo para qualquer outro valor. Ele vem por último.

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP