Correct syntax

Whats the correct syntax for something like this:


 new_mc2.specs.text = myNv["model"+(y)"spec"+(p)];

my myNv variables are written something like this: model1spec2.

Thanks.