Array value to integer

Hi,

Apparently array values are strings. I would like to convert some of the values (some of the values are "4", or "[6]", or full sentences) into numbers.
Is it possible ?
Thanks
 

Endercraft

Moderator (& bug finder :D)
A simple method is to use [lv=strvar] to put into an int var. A better method in case there are not only numbers is to use text manipulation -> extract text \d, put the result into the same variable and use the first method.
Array values don't have to be strings though. They can be any MacroDroid variable type.
 
A simple method is to use [lv=strvar] to put into an int var. A better method in case there are not only numbers is to use text manipulation -> extract text \d, put the result into the same variable and use the first method.
Array values don't have to be strings though. They can be any MacroDroid variable type.
Thanks !
 
Top