How to iterate some text given by a user.

I'mnoob

Member
Hi, I'm looking to make a macro which will take input from user, some text in variable. Text example "haha, aksjs, wodjdj," and it will iterate it like a list.

I saw a action called iterate array/dictionary which I think will be useful but can't figure out how to use it.
 

I'mnoob

Member
Hi, thanks for your help!

I've done more than half and actually I was trying to do it myself and done just somewhat exactly like yours.


But I still having problems related to "array iteration"

I'll Explained my Macro.

- Clear Variables
- User prompt ( user prompts are like shsj, sjsks, sjsj,)
- Using Text manipulation ( Separating "," between them and storing them in a new variable called "split_text"

Now, it saves all the text from user in a array.

For example like this: 1696784421860.png
Then I use **iterate dictionary array Action**

And select Ui interaction then paste option and custom text and it shows me this option 1696784632023.png



Very confuse here.


I just want to iterate/dictionary action to iterate every text stored in array splitted_codes.

With Ui interaction. I thought doing paste with custom text: " {lv=spilited_codes} would work like this:

User input= "hi, hello, lol"
Using text manipulation to split to array in new array variable: [0] hi [1] hello [2] lol. Would type "hi" in 1st iteration and hello in 2nd iteration and so on.
 

Quidn

Passionate Member
It seems you already found the right way.
I still don't know what exactly you want to know but it seems that you are looking for {iterator_value} which you can find in my first screenshot.
 

I'mnoob

Member
It seems you already found the right way.
I still don't know what exactly you want to know but it seems that you are looking for {iterator_value} which you can find in my first screenshot.
Hi thanks, can u explain how can I randomize iterator value?

Also if there is a way to only iterate over certain number of times instead of iterating all the index in the array.
 
Last edited:

Quidn

Passionate Member
how can I randomize iterator value?
Could you explain more in detail? Isn't it that what you wanted was traversal the values given by the user? Is this means, randomizing the order?

only iterate over certain number of times instead of iterating all the index in the array.
Also I couldn't understand what it exactly means. Is this means, limiting the number of entries to iterate, or just repeating certain number of times no matter how many entries were input?
 
Top