Skip to content · ⁨الانتقال إلى المحتوى⁩

Making decisions · ⁨اتخاذ القرارات⁩

English

Making a choice

  • if runs some code only when a condition is true.
  • The condition is followed by a colon :.
  • The lines that belong to the if are indented (4 spaces).
العربية

اتخاذ قرار

  • if يشغل بعض الأوامر فقط عندما يكون الشرط صحيحاً.
  • يتبع الشرط نقطتان رأسيتان :.
  • الأسطر التابعة لـ if تكون مُزاحة (4 مسافات).

Handout · ⁨ورقة عمل⁩

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP