I want to define a function something like that;
def compVar(variable1 , comparator, variable2):
condition = ( variable1.Value 'comparator' variable2.Value)
I am using a SW Simulation tool and it has it's own library, there is a condition variable which gives a boolean output corresponds to PASS or FAIL according to True or False. So i want to use user input as comparator operator but couldn't figure out how to write comparator as operator in condition. Tool is using Python 2.