Possible to put variable directly into set()To()?

USE @snapenilk’s solution maybe not this one

xml script building script pic

drag this image into snap.

how (hidden because I hate advertising)

The first example in the project link of XML script builder v1.4.5, up to date as of snap 11.0.x!