Azer0s / HadesLang

The Hades Programming Language
https://hadeslang.gitbook.io/doc
MIT License
36 stars 2 forks source link

Add multiple else block #60

Closed Azer0s closed 7 years ago

Azer0s commented 7 years ago
case[false]
  out:'0'
endcase

out:'1'

else
  out:'2'
endelse

out:'3'

else
  out:'4'
endElse

out:'5'

else
  out:'6'
endElse

Output 1 2 3 4 5 6


case[true]
  out:'0'
endcase

out:'1'

else
  out:'2'
endelse

out:'3'

else
  out:'4'
endElse

out:'5'

else
  out:'6'
endElse

Output 0 1 3 5