I'm trying to get Construct to perform a calculation if a certain variable is set a certain way. But I cannot figure out how.
The global variable cfcf can only be C or F. If it is C I want it to convert the value of OVTEMP (imagine OVTEMP is normally in fahrenheit) using the formula OVTEMP * 9 / 5 + 32 and then storing the new number in OVTEMP.
It is impossible. I've tried a thousand different things and none work. I could even do this in BASIC in seconds but I cannot find the right way to talk to javascript to get it to do something so simple. Where am I going wrong?