How do i assign a result as "x" and use it in an equation?

Hi i am new to this and is stuck with a problem. I have setup a simple.fuel log calculator which calculates the discrepancy from a set of amount of fuel and sg etc which will be entered by the user. Now the discrepancy will be calculated and shown ive got that much working. My problem is i need to also assign this discrepancy as “x” and put in an equation to show a message if it is above a certain limit. How do i assign this “x” and put in my equation to use in a “if” logic to display the message? Please help

You can learn about storing values in variables here. And then about conditionals here.

·····················································································································
Need help? How to Ask Great Questions :sparkles: Debugging A Project :sparkles: API JSON Tutorial

1 Like