how to use if and else in powershell code example Example: powershell else if if (condition) { # Whatever } elseif (condition) { # Whatever }