O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Controlling Execution Flow

Our journey in the PowerShell programming language will now continue with a quick tour of control flow. "Control flow" is a fancy term that computer scientists and programming language pundits like to use when they mean simply telling your program what to execute next. Eventually, all control-flow-related topics boil down to discussing conditional branches, like the if statement, and looping or repeating an operation a number of times.

PowerShell offers a conventional approach to branching and looping by intentionally implementing constructs that are similar to the ones found in the C language family. People familiar with C, C++, C#, JavaScript or maybe even Visual Basic will feel at home, as the language ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required