How can I make this inside variable?

I want to add 5,3,2,1 in variable so it will be configurable it only accepts int

Hi,

Do you mean you need to set {5,3,2,1} to variable? If so, simply try arrInt ={5,3,2,1} using Assign activity then replace it with arrInt in the expression.

If the above is not your intent, can you elaborate your requirement?

Regards,

image

this is what you mean right?

my arr_maskedPosition will coming from google sheet so it is on string that’s my issue i can’t find a way to convert strVar=β€œ5,2,1,3” to integer

Hi,

Can you try the following expression?

arrInt = yourString.Split(","c).Select(Function(s) Int32.Parse(s.Trim)).ToArray
1 Like

This solves my issue thank you so much!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.