How to check multiple conditions - Swift for Complete Beginners

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 3

  • @tanveerwaheedji
    @tanveerwaheedji 11 месяцев назад

    in 31 code line
    why are you using age instead of userAge?

    • @mskellco
      @mskellco 10 месяцев назад +2

      Probably typo :) In this case, it happened to work because we defined age earlier in the code.

  • @0xDevelopers
    @0xDevelopers 3 года назад

    To all beginners. If you have more than one condition to check. Use switch case, it's cleaner and more efficient.