mariah 0 Posted March 5, 2012 Report Share Posted March 5, 2012 (edited) HI, anybody could help me to find a list position By variableexample : orangebananajuicemanggocoffe and What I intend to do is set the list position on the word "Juice" and go to the next list item, the problem is, my list is filled with thousand words, and need to be done automaticly. thank you Thank you Jhon, Its works Edited March 5, 2012 by mariah Quote Link to post Share on other sites
JohnB 255 Posted March 5, 2012 Report Share Posted March 5, 2012 You can do it like this: clear list(%list)add list to list(%list, $list from text("orangebananajuicemanggocoffee", $new line), "Delete", "Global")set(#position, 0, "Global")loop($list total(%list)) { if($comparison($list item(%list, #position), "=", "juice")) { then { alert("\"juice\" is at list position {#position}") } else { } } increment(#position)} John 2 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.