I had written some formulas that assumed that a numeric field with the value 0 (zero) would evaluate to false, like in other languages I use. For example, the formula
If(0, true, false)
false. I believe this had been working in Coda like this. Today I noticed that my formulas were behaving oddly, and I realized it’s because 0 evaluates as true, as demonstrated here:
Was there a change to Coda’s handling of 0 or am I misremembering things?
I’ve started doing explicit comparisons, like
If([Input number] != 0, true, false), but I’m curious.