In this chapter, we will cover the following recipes:
- Using If–ElseIf–Else conditions to control script flow
- Using Switch–Case conditions to control script flow
- Learning to use delays
- Writing a basic looping construct
- Writing a more complex loop on a predefined array
- Using the For loop construct
- Using the While loop construct
- Cleaning empty directories using the Do–While construct
- Cleaning empty directories using the Do–Until construct