0

Expression to check if empty field

In an expression, I need to determine whether or not there is anything on a particular text field. When I try that, using the example below, the result is always True. How do I make this expression correctly? 

If 'Text1' != "" Do... End

5 replies

null
    • Ninox developer
    • Fabio
    • 5 yrs ago
    • Reported - view

    Try this:

     

    if 'Text1' != null then

    .....

    end

     

    Fabio

    • Producer, Manager
    • Jan_Inge_Iversen
    • 4 yrs ago
    • Reported - view

    I did not get this work.

    • Mconneen
    • 4 yrs ago
    • Reported - view

    I tested this on all but the iPhone. 

    testBlank

    The code

    theCode

    • Choices_Software_Dean
    • 4 yrs ago
    • Reported - view

    Try adding this formular to a button beside a text field named Text:

    if Text then
       alert("I am " + Text)
    else
      alert("I am empty")
    end

    • Birger_H
    • 4 yrs ago
    • Reported - view

    I check for empty like this:

    –––
    if 'DataField' != null then ...
    –––

    Birger 

Content aside

  • 4 yrs agoLast active
  • 5Replies
  • 3418Views