View Single Post
Old 01-23-2003, 01:47 PM  
FuqALot
Confirmed User
 
Join Date: Dec 2001
Location: Malibu
Posts: 3,817
Well...

if ($value ne "nochoice") {$modifyfield = 26; $searchtext eq $value;}

If you want $searchtext to be come equal to $value, you should use '$searchtext = $value' instead of '$searchtext eq $value'.

About the non trueing, what I would try is, try each value out and let the script print $value, or something like:
'print "x".$value."x"', so whatever is between the x's is the actual value of $value (so you're not missing any spaces and stuff), because maybe the =~ didn't clean up, and so you will end up seeing $value was actually '%nochoice', or something.

If printing and checking the $value still doesn't give any results, then instead of 'if ($value ne "nochoice")' try the following:
'if ($value !~ m/nochoice/)'.

Last edited by FuqALot; 01-23-2003 at 01:49 PM..
FuqALot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote