I have the following code
num1 = 10 someBoolValue = True
I need to set the value of num1 to 20 if someBoolV
num1
20
someBoolV
Another way num1 = (20*boolVar)+(num1*(not boolVar))
num1 = (20*boolVar)+(num1*(not boolVar))