Example in Action: "switch" Statement with a "break"

Watch this video on the "switch...case" statement that is used to obtain the current day. This statement is a variant of the "if... else" statement. However, the "switch" statement does not use "Boolean" or "equality" operators.

Remember, when using the "switch" statement, the "break" statement must be at the end of each condition, and case labels must be unique.


Source: Meri Engel, https://www.youtube.com/watch?v=HItwtbb0nGE
Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Last modified: Tuesday, October 4, 2022, 2:16 PM