You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch is documented as having a syntax like this:
switch status
when "completed"
console.log "This project has been completed"
when "archived"
console.log "This project has been archived"
else
console.log "This project is active"
However it appears to actually have a syntax like this (note indented when):
switch status
when "completed"
console.log "This project has been completed"
when "archived"
console.log "This project has been archived"
else
console.log "This project is active"
The text was updated successfully, but these errors were encountered:
On this page: https://imba.io/language/operators
Switch is documented as having a syntax like this:
However it appears to actually have a syntax like this (note indented
when
):The text was updated successfully, but these errors were encountered: