IFClite TypeScript API
    Preparing search index...

    Function numberUnlessBlank

    • Number(value), except that blank text is NaN, so it compares false both ways: Number('') and Number(' ') are 0, which made an empty property satisfy < 5 or <= 0 in Lists and in strict Rules filters (#12128). Anything that is not a string keeps Number's reading, so undefined stays NaN rather than throwing.

      Parameters

      • value: unknown

      Returns number