Hi guys my query is with the use of IF statements.
The following is a straight forward code snippet using an IF statement
I've seen a code snippet which used (-1) to evaluate an expression. Hence the above code would be something like the following:
However when I try to use this method, I dont get the correct evaluation even if I put the correct name in the Input box.
Can anybody help with this?
Cheers
The following is a straight forward code snippet using an IF statement
Code:
string1 ="Zeus"
namer = Inputbox("Please enter a name")
If namer = string1
wscript.echo "name found"
else
wscript.echo "name not found"
End if
Code:
If namer = -1 Then
wscript.echo "name found"
else
wscript.echo "name not found"
End if
Can anybody help with this?
Cheers