Hi All,
I think I am overlooking a very simple thing but I cannot figure it out.
I am using a function with a parameter but I want to check if the parameter is valid so there are three valid parameters, test1, test2, and test3 if something else is given as parameter an error is thrown. How can it be that even when I call the function with a valid parameter still the exeption is thrown?
If (($Location -ne "test1"
-or ($location -ne "test2"
-or ($location -ne "test3"
){throw "Location must be test1, test2 or test3)"}
Can somebody help?
Regards,
Martijn