Jump to content
UBot Underground

Items within UI block text each receiving their own list position?


Recommended Posts

Hello People...

 

Was wondering who out there on the forum knows the best workaround for the following...

 

Pretty much...  When a user places a batch of words in my "UI block text" my script will then "Add item to list".... however at this point the batch of words will ALL be considered 1 list item.  How can I set a varibale so that no matter what amount of words are entered into the "UI block text" , each word will be given there own number in list position.

 

 

Ultimately I am trying to have a sequence where I run each word through a loop individually as I go through the whole list that is contained within the "UI block text".

 

I am pretty much stumped at this point here

 

clear cookies
ui block text("search"#batch)
ui button("search") {
    add item to list(%main#batch"Delete""Global")
    set list position(%main, 0)
    loop($list total(%main)) {
    }
}

 

 

 

Just a side note...  I throw some crazy parties in Salvador, Brazil whoever helps me out with this and if your ever around in my neighborhood....  consider yourself behind the ropes ;)

 

 

thanks in advance

 

DD

Link to post
Share on other sites

clear cookies
ui block text("search"#batch)
ui button("search") {
    add list to list(%main$list from text(#batch$new line), "Delete""Global")
    set list position(%main, 0)
    loop($list total(%main)) {
    }
}

 

 

never been to Brazil

  • Like 1
Link to post
Share on other sites

clear cookies

ui block text("search"#batch)

ui button("search") {

    add list to list(%main$list from text(#batch$new line), "Delete""Global")

    set list position(%main, 0)

    loop($list total(%main)) {

    }

}

 

 

never been to Brazil

HIUGE Zap!!  Well PM me if you decide to come down...  a promise is a promise!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...