You mean like:
if cake > pie, then eat
if friday = today, then sing
???
Or are you trying to compare numbers in a string? If so, I think you can covert the string into a real/integer, then compare.
how do you convert cake into an integer and friday into a real?