IsEmpty() vs = "" vs = 0 in FileMaker calculations
BeginnerIsEmpty, comparison to empty string, and comparison to zero all test "emptiness" differently in FileMaker. Learn exactly what each one checks and why mixing them up causes silent bugs.
What you'll learn
- What IsEmpty() checks and when it returns True vs False
- Why a number field containing 0 is not empty, and a text field containing "" is
- The right function to use for each type of emptiness check
IsEmpty() returns True only when a field contains absolutely nothing — no characters, no spaces, no zero — while = "" and = 0 compare the displayed value and can return unexpected results on typed fields.
Stuck is a valid status
Need a second brain on this one?
If this lesson just collided with your real schema, script stack, or deadline, book consulting and turn the confusion into a concrete plan.
Use IsEmpty() for a true null check
IsEmpty() returns True only when the field has never been set or was explicitly cleared. A number field set to 0 is not empty — it has the value 0.
# IsEmpty returns True only if the field has no value at all If [ IsEmpty ( Contacts::phone ) ] # phone has never been entered End If # A field containing 0 is NOT empty Set Variable [ $x ; Value: 0 ] If [ IsEmpty ( $x ) ] # FALSE — $x has the value 0 # This branch is never reached End If
Sign in to track your progress and pick up where you left off.
Sign in to FM Dojo