Text to Integer

I get a string with the following format “b7,s250,r100,b17,g12”

I convert the string to a list and then run through a for each loop. I have an if then for each list item. I then need to set a slider to the corresponding value. No matter what I try I am not allowed to use a substring as the value for a slider.

I have tried using the math function “+0” and “*1”. Neither of these will accept the substring either.

Give this a try



I was able to resolve the issue by saving the substring to an app variable. Then using that as the value. Its a poor workaround. But, it worked.