You do not need a script, you do not need anything else.
Just enter the condition to show the specific subquestion into "relevance equation" of subquestion of A2.
And the equation I showed is that what you told us.
that got answer == 1 in the previous array.
The condition of the subquestion of A2 is, that the code in A1 is equal 1.
Please, learn the basics about QCode variable naming
Please read the manual about ExpressionScript generally
and this
[url]
www.limesurvey.org/manual/Adding_answers...fic_for_subquestions
[/url]
Study the sample surveys included in the manual
[url]
www.limesurvey.org/manual/ExpressionScript_sample_surveys/en
[/url]
and in the demo installation
[url]
demo.limesurvey.org/index.php?r=admin
[/url]
"It doesn't work" is not very useful.
Attach a lss export of these relevant question to show us what you realy did.
Joffm