I have come across a few situations where I would like to make the value of a boolean variable dependent on some condition.
For example, suppose 'a' is a boolean variable and 'b' is a continuous variable from 0-1.
I want to script something along the lines of "If b<=0.5, a=true. Else, a = false".
Is there an easy way to do this?