We've encountered an issue exporting this macro. Please try exporting this page again later.
The switch statement is somewhat similar to an if/else statement but can be easier to read when there are many different possible conditions.
Example 1
switch (season) { case "Summer": print("It's too hot!"); break; case "Winter": print("It's too cold!"); break; default: print("It's just fine!"); }