[Closed] How to remove quotation marks ??
in many situations i need to store what is in string into a variable … or removing quotation marks “” …
ex :
MyNewArray = 10
a = ” MyNewArray “
??? { how to remove quotation marks from a so the following line treats a as value}
x = a + 5
…
ex :
b = “#(5,10,10,5)”
??? { how to remove quotation marks from b so the following line treats a as array}
a = b[2] + 50
In simple cases like this execute is enough, when working with a file (stream), readValue and readExpr are better.
However it is better for cases like your second example, getting a value, when working with variables, they have to be accessible from global scope and evaluate to global scope. Sometimes it makes more sense to use getProperty/setProperty, especially when working with rollouts or structs.