This is an extension of a question I have asked earlier. In short, if we pulled in the correct city/state from the zip code it displays that value. if we got it wrong then I pull in a concatneated version. This works well, but I'm having to use the original coding a lot and it is cumbersome.
So, I'm trying something new. I start with trying to set the value of my passin variable NEWCITYSTATE. That is shown in this first bit of code below. Then I want to be able to recall the value simply by going [% NEWCITYSTATE %].
While I'm not getting any errors when running the script below, nothing displays when I try to display [% NEWCITYSTATE %]. Yes, this is a text variable.
[% Begin Unverified Perl
#setting string for concatenation
my $tempcity = GETVALUE("LOC1_r1_c1");
my $tempstate = LISTLABEL("STATEList", GETVALUE("LOC1_r1_c2"));
my $newloc = $tempcity . ', ' . $tempstate;
#Condition for displayed text
if (GETVALUE("CorrectCity") == 2)
End Unverified %]