Skip to content · ⁨דלג לתוכן⁩

Selection: CASE · ⁨בחירה: 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.
עברית

CASE בוחר ענף אחד

  • CASE מריץ את הענף שערכו תואם את המשתנה.
  • הענפים נבדקים בסדר. הענף הראשון התואם מריץ, ושאר הענפים מודלים.
  • OTHERWISE הוא הענף לכל ערך אחר. הוא בא אחרון.

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP