Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
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