Hello,
I'm trying to have conditional text for a summated price variable in ACBC, and my syntax seems to be crashing. When it's a BYO, I want the "$" symbol, and when it's NOT BYO, I want the symbol text to read "Cost of entertainment package: $" (followed by the dollar amount).
I have font and color added for the "else" case so that the text and dollar amount would be in orange, and a "<br>" after the $ symbol to put the actual price on a second line after the preceding text.
My PERL syntax is here:
[%
begin unverified perl
if(QUESTIONNAME() eq "ACBC2_BYO"||
QUESTIONNAME() eq "ACBC2_MustHave1"||
QUESTIONNAME() eq "ACBC2_MustHave2"||
QUESTIONNAME() eq "ACBC2_MustHave3"||
QUESTIONNAME() eq "ACBC2_MustHave4"||
QUESTIONNAME() eq "ACBC2_MustHave5"||
QUESTIONNAME() eq "ACBC2_Unacceptable1"||
QUESTIONNAME() eq "ACBC2_Unacceptable2"||
QUESTIONNAME() eq "ACBC2_Unacceptable3"||
QUESTIONNAME() eq "ACBC2_Unacceptable4"
)
{
return "$"; }
else {return "<font size='3' color='#ff8040'>Cost of entertainment package: <br>$ "; } end unverified %]
I have the feeling I'm missing something obvious, unless there's some reason that unverified perl won't work with a summated price variable? FYI, I do have summated price working with unacceptables in my Price tab.
Any help would be welcome. Thanks!