How to pass dataset vals to a project script using runscript

How do I go about in an expression to pass dataset vals and a tag to a project script via the runscript function.
In other words, my call might look like:
runscript(“app.misc.SumCP({Root Container.ConvA[1,0],{Root Container.ConvB[1,0],{General/CP_Bar_Val}”)
The function works when passing actual values, but not when passing a tag or member of a dataset.

You have to do the following:runScript("app.misc.SumCP(" + {Root Container.ConvA[1,0] + "," + {Root Container.ConvB[1,0] + "," + {General/CP_Bar_Val}You may have to use single quotes if your variables are strings.

Thanks, got it working!