Boolean values are just statements that return true or false. For example, does 1 + 1 equal 2? This would be true. How would this look in code well here is an example. Notice in the above if statement since $result was -eq (equal) to 2 the text “My value is equal to 2” was…
All posts in July 2021
Variables
I’m going to act like you’re brand new to scripting. So think of a variable as a bucket you can store a type of data in that is referenced as a word. Also note that variables in PowerShell start with a $ symbol. For example, we can create a variable called $FirstName that contains the…