Hey!
I have this code, and it gives me an error.
Basicly, I am scanning our AD for servers whoose name starts with either RET or ITU. But I an error on the IF row.
Here is the script
servername = "RET100"
If ucase(Left(servername,3)) = "ITU" Or "RET" Then MsgBox "Good"
And this is the error.
Type mismatch: '[string: "RET"]'
How can I get the IF function to check for 2 things, without having 2 IF functions???
Thanks
Daniel
I have this code, and it gives me an error.
Basicly, I am scanning our AD for servers whoose name starts with either RET or ITU. But I an error on the IF row.
Here is the script
servername = "RET100"
If ucase(Left(servername,3)) = "ITU" Or "RET" Then MsgBox "Good"
And this is the error.
Type mismatch: '[string: "RET"]'
How can I get the IF function to check for 2 things, without having 2 IF functions???
Thanks
Daniel