powershell if else exit script code example Example: powershell else if if (condition) { # Whatever } elseif (condition) { # Whatever }