Entries

Caloric Difference

if(prop("Burned") == toNumber("") and prop("Consumed") == toNumber(""), toNumber(""), prop("Burned") - prop("Consumed"))

if(prop("Burned") == toNumber("") and prop("Consumed") == toNumber("")

Check to see if both Burned and Consumed are blank (including no 0). toNumber("") is equal to nothing, as opposed to 0

toNumber("")

If they're both blank, return nothing.

prop("Burned") - prop("Consumed"))

If either have a value (including 0), subtract the Consumed value from the Burned value.

[By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!](https://bensomething.notion.site/By-Ben-Latest-Was-this-helpful-Please-consider-buying-me-a-coffee-Cheers-7e0a08e8adbe4fc8af49603e9622621a)