How to correct the condition?
Posted: 23 Jun 2012 07:45
I'm finishing the script from this thread:
viewtopic.php?f=3&t=3435
After I parsed the tags, I have found IP, port, country, server type and anonymity. Sometimes the type is HTTPS which I am not interested so type is empty. Also if the anonymity is medium or low, so it is empty . Now I want the condition, if these two variables are not empty, then save the values... This code results in incorrect effect - it prints Anonymity is "" ... which is non-sense. If anonymity is empty and type is empty, then Saving should appear.
Type and anonymity are strings usually, because they save descriptions of the server. So is there string operator for <> equivalent?
viewtopic.php?f=3&t=3435
After I parsed the tags, I have found IP, port, country, server type and anonymity. Sometimes the type is HTTPS which I am not interested so type is empty
Code: Select all
SET type=
Code: Select all
SET anonymity=
Code: Select all
if "!type!" NEQ "HTTPS" (
if "!anonymity!" NEQ "" (
echo Saving...
) else echo Anonymity is "!anonymity!"
)
Type and anonymity are strings usually, because they save descriptions of the server. So is there string operator for <> equivalent?