If it rains, I stay at home, else if it is also hot I go swimming, else..: chained conditionals

Another condition and alternative block of code is defined, syntax:

if CONDITION:
  STATEMENT1
  ...
  STATEMENTn
elif ANOTHERCOND:
  ALTSTAT1
  ..
  ALTSTATm
else:
  ALTALTSTAT1
  ..
  ALTALTSTATl

with:

CONDITION, a boolean expression

ALTSTAT1..ALTSTATm, executed if CONDITION is FALSE and ANOTHERCOND is TRUE

ALTALTSTAT1..ALTALTSTATl, executed if CONDITION is FALSE and ANOTHERCOND is FALSE