Shopping Lists

Under/Over?

or(empty(prop("Cost")), empty(prop("Budget"))) ? "" : if(prop("Cost") <= prop("Budget"), "🍏", "🍎")

or(empty(prop("Cost")), empty(prop("Budget")))

Check to see if either Cost or Budget are empty.

? ""

If either or both are empty, display nothing.

: if(prop("Cost") <= prop("Budget"), "🍏", "🍎")

Otherwise, check to see if Cost is less than or equal to Budget. If it is (under budget), show a green apple. If it isn't (over budget), show a red apple.