what i want to do is use an if - else to compare a variable to a load of variables. I could of course use an OR, but i've got about 200 variable to compare -- long loop!
what i want to do is compare it to a files content - so for example i have a file called compare.txt
my compare.txt file has the lines -
so (pseudocode) -
if $myvariable == compare.txt variables
[i]do something else[i]
so in this case it would return false
is there a way to do this or would i have to list a,b,c & d as seperate variables?
thanks for the help!
compare values in a file
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users