Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

TextExists not working

Hi,

Below code is not working in a constructed list:

Begin Unverified Perl
if (TEXTEXISTS("B1_r1_c1","Ola") == 1)
{
    ADD("B2List");
}

End Unverified


Please help.
asked Apr 9, 2016 by Niks Bronze (620 points)

1 Answer

+1 vote
Try this ...
Begin Unverified Perl

 if(TEXTEXISTS(GETVALUE("B1_r1_c1"),"Ola"))
  {
   ADD("B2List");
  }
 
End Unverified

Just tested it - works a treat.
answered Apr 9, 2016 by Paul Moon Platinum (72,815 points)
...