Compare two variables with the comparison operator specified as a string.