I have got the following condition in string format over the network:
"value1+value2>value3"
I am getting value1, value2 and value3 from certain registers say
value1 = readRegister(100),
value2 = readRegister(200),
value3 = readRegister(300)
So I have created follwing dictonary by reading the register values
test_dict = { value1:120, value2: 200, value3: 500}
If condition mentioned at starting is true then I have to perform certain operations.
As I mentioned at starting the condition is in string format, so I need to fetch and fetch the value of string mentioned in condition from the dictionary that I have created (i.e. test_dict) and then need to perform the arithematic operation mentioned in condition.
I am not sure how solve this.