Formula emtpyfield

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MicKress
    Senior Member
    • Aug 2017
    • 105

    Formula emtpyfield

    Hi, what ist the expression in formula for an empty varchar type field. I tried field=='' and field==null, but nothing happened. I need this for an ifThen expression (ifThen (field=='', expression1))
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi.
    It works perfectly. ifThen(testtext == null, sicCode = 2)

    Comment

    • MicKress
      Senior Member
      • Aug 2017
      • 105

      #3
      Hi, my formula is

      ifThenElse(salutationGenderName=='Frau' && salutationForm=='familiar' && nickName == null, salutationLetterText=string\concatenate("Liebe ",firstName), salutationLetterText=string\concatenate("Liebe ", nickName)); ifThenElse(salutationGenderName=='Herr' && salutationForm=='familiar' && nickName == null, salutationLetterText=string\concatenate("Lieber ", firstName), salutationLetterText=string\concatenate("Lieber ", nickName));

      That doesn't work.

      Comment

      • MicKress
        Senior Member
        • Aug 2017
        • 105

        #4
        I see, it was the wrong forum, sorry. I wanted to write the post under general discussion, but obviously I clicked the wrong part.

        Comment

        • Maximus
          Senior Member
          • Nov 2018
          • 2731

          #5
          The formula seems to be correct. Have you checked the error log file? Is there everything good with the indentation in the formula?

          Comment

          • MicKress
            Senior Member
            • Aug 2017
            • 105

            #6
            Now it works, thank you. Don't know what happenend ...

            Comment

            Working...