I want to calculate the charge rate for my solar battery with the logic card below. However, the result can be negative in some cases, and I also want to set an upper limit. What is the easiest way to do the following with the output:
- If #charge_rate is lower than 100, set charge_rate to 100
- If #charge_rate is higher than 2000, set charge_rate to 2000