Possible Duplicate:
Build condition comparison for if statement
Is there a way to convert '<' (string character) into a < (comparison character)?
EDIT:
I know of another way of achieving the same result, but it's a little longer, and wanted to know if that shortcut will work.
Basically, the comparison character is retrieved from the database (it could be <, > or =) as string, and it's supposed to compare 2 numbers. I understand that I can write a couple of scenarios of checking what the character is, but I still wanted to check if that string character could be converted to its comparison equivalent before embarking on the longer route.