So I’m about to pull my hair out. Does bubble have a bug with the “is empty:” operator when it’s nested in an expression that does basic sums?
So here’s what I got, I’m trying to change 5 number fields of the “Invoice” object (see screenshot). Basically if the field is empty I want the new incoming value to be pasted there and if the field already has a value there, then I want that incoming value to be added.
Initially these 5 fields are always empty so the logic should always just paste the value “adyen_settlms interchange (NC)”, but that DOESN’T happen! It always goes to the other condition (where it sums +1).
Initially the “INV Fee Merchant Interchange” value IS ACTUALLY empty so if you sum that is bubble doing null + 1? The resulting number in the database is always some random number every time I try this. The resulting operation for “is empty: → no”, is actually different, I just narrowed it down and tried doing something simple like a +1 to find the problem and that’s how I got to here. Am I missing something, is this a bubble bug or am I crazy? I’ve been at this for 5 hours.
Is there an easier way to do basic conditional arithmetic’s in bubble?
Thanks a ton!
Pedro - Dev