how to do an if statement in ps1 code example Example: powershell else if if (condition) { # Whatever } elseif (condition) { # Whatever }