How To Use Switch Case Statement In Google Apps Script

Опубликовано: 15 Октябрь 2024
на канале: Amarindaz
4,695
38

Title: Switch Case Statement in Google Apps Script

Switch case statement is used to evaluate the expression with different cases and executed the matched case.

If there is a match the respective case block is executed.

If there is no match the default block is executed.

The break statement is needed after each case.

If you don't use break statement after the case the following case will also be executed after the current case.

The break statement is not needed for the default case.

The default case is similar to the else block in the if-else statement.

********* Tutorial Playlists *********
Google apps script tutorial for beginners- https://bit.ly/google-apps-script-tut...
Automate internet explorer with VBA- https://goo.gl/Xmy8Af
Autoit tutorials for beginners- https://goo.gl/JHB1E2
Selenium Webdriver tutorials for beginners -https://goo.gl/QqxTrF

***** Contact me *******
Blog: http://www.amarindaz.com/contact/
FB page:   / amarindaz  

****** Books written by me *******
Autoit tutorials for beginners: http://amzn.to/2GjaDbD
Excel VBA for beginners: http://amzn.to/2nhI067

****** Productivity tool ********
My Favorite YouTube Tools ➜ https://goo.gl/MX9Z4p and ➜https://goo.gl/UW1uRX

****** Gear Used To Shoot This Video *****
_Audio & Microphone
http://amzn.to/2GibdGu

*******Learning partner*******
Video courses ➜https://click.linksynergy.com/fs-bin/...

Don't forget to subscribe! https://goo.gl/J2453w

💼 To Hire Me 👉 https://fwd.cx/WLGgpTiZW5HK

Checkout my app 👉 https://www.myfreshtools.com