I want to create a powershell if statement. I want it so the user can only enter yes or no, if anything else is entered it will either ask again or throw an error.
how can i do that?
I want to create a powershell if statement. I want it so the user can only enter yes or no, if anything else is entered it will either ask again or throw an error.
how can i do that?