You haven't provided enough information for someone to extrapolate the answer to your problem. You didn't even state what type of error you're getting. Is the comparison not working? For instance...