Below is an example of some Perl script.
Note the syntax. Perl is case sensitive so variable names must be specified as you define them. Functions must be specified as per the help reference.
[%Begin Unverified Perl
if(VALUE("QA")==1 && VALUE("QB")==1)
$Q1Script="The box is red.";
elsif(VALUE("QA")==1 && VALUE("QB")==2)
$Q1Script="The box is blue.";
$Q1Script="The box is green.";
Just a couple of issues I spotted in your script ...
*Only use "eq" in your conditional script if you are referring to a text question/variable.
*Use "||" for OR and "&&" for AND.
*Nest the apostrophes correctly around variable names. Use my example as a guide.
*Use VALUE("Q1") or GETVALUE("Q1") when referring to variables.
Let me know how you go.