I want to change a variable based on an input and a possible range. Similar to how rainbowValue sets a color but based on numbers,
For example. If the temperature is between 70 and 80 set the variable to a number between 0 and 100.
RainbowValue(Temp, 70, ’0’, 80, ’100’)
71 would return a value of 10
72 would return a value of 20
I can create a simple piston to figure out this example but I’m wondering if there’s an expression that’ll do it for me.