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
    • Sviluppatore Ninox
    • Fabio
    • 5 yrs ago
    • Reported - view

    Try this:

     

    if 'Text1' != null then

    .....

    end

     

    Fabio

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

    I did not get this work.

    • Mconneen
    • 5 yrs ago
    • Reported - view

    I tested this on all but the iPhone. 

    testBlank

    The code

    theCode

    • Choices_Software_Dean
    • 5 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
    • 5 yrs ago
    • Reported - view

    I check for empty like this:

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

    Birger 

Content aside

  • 5 yrs agoLast active
  • 5Replies
  • 3426Views