I have a problem in python. I want to create an if clause from a string that is given as a parameter to a function. It looks something like this:
def function(foo)
if(foo):
print("bar")
test = "5 > 10"
function(test)
I would like to see nothing printed, because 5 > 10 is False. But actually it is printing "bar". Is there a way to get this right without asking if (foo.split(" ")[2] == ">") do something