Learn PowerShell: Episode 10, Counting + Loop Control + Functions

preview_player
Показать описание
Welcome to the tenth episode of the PowerShell tutorial series! This is the series' second-to-last episode, and it's been a long time coming, but here we are!

In this episode, I cover how to count from one number to another with loops, the special keywords PowerShell provides to let you control loops from within them, and functions!

There are many ways of counting from one number to another, all of which I go through in this video: Through while, through foreach and through for. I also cover some of the deeper conventions that underline counting with loops and such.

The next thing I cover in this video is how to control loops from within them, through the keywords "Break" and "Continue". These are really powerful keywords that help you write much neater code.

And speaking of useful structures: One of the most powerful features of any programming language, functions, is introduced fully in this video, from why you'd want them, to how to make them and put parameters and return values on them.

Lots to cover, so sit back and enjoy!

CHAPTERS:

0:00 Counting
12:30 foreach structure
14:55 Loop Control
17:10 Using Functions
22:05 Why Use Functions
25:00 Functions in Practice

Thanks for watching my video, before are some general ABMedia links if you are interested:

The Discord server is a place to chat with the creator of this video, as well as anyone who contributed to its development and has helped support ABCo over the years.

A huge thank you goes to @ndumiphotos (on Instagram) for the graphics used in the intro.

#powershell #powershellscripting #learnpowershell
Рекомендации по теме
Комментарии
Автор

Spectacular serious can't wait to see the last one.

MrMKA
Автор

Wonderful video Alex, Thank you for your hard work!

michelcroz
Автор

Thank you!!!! I found it extremely useful. Looking forward to the next one.

sbrihan
Автор

Thank you very much for the wonderful series. Honestly, I learn alot from the tutorial :)

pavanr
Автор

Looking forward to the next one! Hope it's soon :o)
You're a great teacher Alex! Keep up the good work.

stevecreasey
Автор

Besides meaning 'index', when the variable name '$i' is in a loop, you can take it as short for "iterator_Variable", since you use it to count the iterations of the loop.

materialknight
Автор

Thanks you. The series have provide good explaination it help to clear up some concept issue i have previously. This is only be beginning and it works differently in corporate environment as we used different module and sometime writing function.

kelvinchua
Автор

Sensei don't leave us ! at least give us a place to continuo I am doing scripts to destroy my pc out of boredom.

MrMKA