0 Replies Latest reply on Feb 11, 2016 2:18 PM by Patrick Ruppert

    Checking for empty value velocity scripting

    Patrick Ruppert

      I've been digging through the apache guide trying to figure out how to return a value if a lead level field is empty. If it has information, then I would like to return a different value.

       

      I've been using this type of setup:

       

      #if( "$lead.fieldA" == "" )

           Test 1

                else

                     Test 2

                        #break

                     #end

       

      I've also tried the following:

       

      #if($lead.fieldA)

       

           Test 1

               #elseif(!$lead.fieldA)

               Test 2

               #break

             #end

       

       

      Just curious if anyone else has run into issues like this?