in reply to If statement based on Radio Button Values
My error message is now a Software error: Can't modify concatenation (.) or string in scalar assignment near ""Yes_bus") " Global symbol "$subject" requires explicit package name at line 382 (which is where I use the smtp to send the email I am trying to generate).if (businessCall.value = "Yes_bus") { my $subject = "Branch Manager Business Call"; } else { my $subject = "Merchant Referral"; }
it works without issue. I am 100% messing up the If statement. I have tried without the ".value", with and without '==', as well as with an else if, and else. Most of the example I have looked at are dealing with "If (this happens) { Print statement here }; Not in setting value.my $subject = "Merchant Referral";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: If statement based on Radio Button Values
by poj (Abbot) on Nov 05, 2015 at 20:36 UTC | |
|
Re^2: If statement based on Radio Button Values
by hippo (Archbishop) on Nov 05, 2015 at 22:22 UTC |