MrMetroGnome
New member
I'm trying to send an SMS from an array of strings. I've defined the array, but I don't understand the syntax of simply accessing the array explicitly, let alone randomly choosing an integer from 0 to the array size - 1.
Set n=[size=Array]-1I'm trying to send an SMS from an array of strings. I've defined the array, but I don't understand the syntax of simply accessing the array explicitly, let alone randomly choosing an integer from 0 to the array size - 1.
I'm new to MacroDroid. Please give an example. thank youSet n=[size=Array]-1
Set i=random from 0->n
Set s=Array[[lv=i]]
You first should have a look to MD Wiki to get familiar with MD.I'm new to MacroDroid. Please give an example. thank you
Set s=Array[[lv=i]]
is even not mandatory as you can use and display Array[[lv=i]]
like any other string variable.