I wrote this expression. This is my ternary operator. But I don't know how to complete it using else if.
if (location >= 1) else location
I want to do this because I need the output value to not be less than zero or more than one. I was hoping this would work, but it doesn't:
if(location >= 1 ) else if(location <= 0) else location
Is it possible to write code in driver that would limit the output value between zero and one?