A Programmer's Question(s) on MacroDroid Arrays

For various reasons I can't swear make any sense, I've been trying to learn arrays and how MacroDroid implements them from a friend who won't use it. Communication hurdles and hangups are hard to explain here.

I could answer the following with trial & error and clarifying questions which he's implicitly tergiversated on if he'll roll with. Since his phrasing is so constrictive, though, I'll just copy and paste his words here. (He's not bringing up side subjects that are over my head to be smug. I understand from recent correspondence why he's asking some of this stuff.)

For his sake, please provide the "yes, no" he's requested. For mine, please add thoughts if inclined.

My friend's multi-part question:

let's stick to a simple use case: arrays that contain only integers and are indexed only with integers starting at 0 and incrementing by 1
that way when I say [3 5 7] it's clear that's an array containing 3 numbers indexed from 0 to 2, so length 3
if myarray is said array [3 5 7] then myarray[0] is 3, myarray[1] is 5 and myarray[2] is 7, to use the parlance of our times
can you do these things in MD? valid answers: yes, no
 

Endercraft

Moderator (& bug finder :D)
For various reasons I can't swear make any sense, I've been trying to learn arrays and how MacroDroid implements them from a friend who won't use it. Communication hurdles and hangups are hard to explain here.

I could answer the following with trial & error and clarifying questions which he's implicitly tergiversated on if he'll roll with. Since his phrasing is so constrictive, though, I'll just copy and paste his words here. (He's not bringing up side subjects that are over my head to be smug. I understand from recent correspondence why he's asking some of this stuff.)

For his sake, please provide the "yes, no" he's requested. For mine, please add thoughts if inclined.

My friend's multi-part question:

let's stick to a simple use case: arrays that contain only integers and are indexed only with integers starting at 0 and incrementing by 1
that way when I say [3 5 7] it's clear that's an array containing 3 numbers indexed from 0 to 2, so length 3
if myarray is said array [3 5 7] then myarray[0] is 3, myarray[1] is 5 and myarray[2] is 7, to use the parlance of our times
can you do these things in MD? valid answers: yes, no
If I understand correctly that is possible so Yes.
Macrodroid lets you do so much I believe there’s a way for almost everything.
 
If I understand correctly that is possible so Yes.
Macrodroid lets you do so much I believe there’s a way for almost everything.
Thanks. I also just created and edited an array manually and configured an action to display it as shown. I think it's close to what he's describing.
Screenshot_20220921-031421_MacroDroid.jpg

Screenshot_20220921-031326_MacroDroid.jpg
 

RSF

Well-known member
And you reference an individual array element with square brackets, e.g. {lv=myarray[1]}
 
Top