[EDIT]Looks like Laserlight spotted the problem.[/EDIT]
Please define "not working out right." And does it not work right for all values entered, or only for specific values? (Note that it will evaluate as true if the form field is submitted with one or more spaces, newlines, etc., in which case you might want to [man]trim/man the value, first.)