11.5. Summary

I introduced you to how arrays are expressed and manipulated in Windows PowerShell. I also introduced you to the associative array, a data structure that allows you to store collections of keys and corresponding values.

I then introduced you to the conditional expressions supported in Windows PowerShell and showed examples of how you can use them:

  • The if statement

  • The switch statement

Finally, I introduced you to the looping constructs supported in Windows PowerShell and showed you examples of how you can use them:

  • The while statement

  • The for statement

  • The foreach statement

Get Professional Windows® PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.