List. Select variable add to list then index number

Subfocus

New member
Just as I say in the title

A list name. Dog List

A variable (string)

0 golden retriever
1 dachshund
2 corgi

My dog is a (get index (dog list) 2)

My dog is a corgi
 

Dm114

Well-known member
Just as I say in the title

A list name. Dog List

A variable (string)

0 golden retriever
1 dachshund
2 corgi

My dog is a (get index (dog list) 2)

My dog is a corgi
You also could use MacroDroid Specific > Selection Dialog
 

Subfocus

New member
I want to create a list of all of the same variable type. Then reference that list and index number to execute my action
 

Dm114

Well-known member
I want to create a list of all of the same variable type. Then reference that list and index number to execute my action
It's exactly what I suggested: store them in an array and then use Selection Dialog action to select the one you want to.
 

Subfocus

New member
It's exactly what I suggested: store them in an array and then use Selection Dialog action to select the one you want to.
Aww snap! I didn't know you can do that. I just did what you said and you're right. I'll delete this later.
 
Top