hecolivares 1 Posted August 29, 2017 Report Share Posted August 29, 2017 How would I go about repeating the same list item on several instances? Say a form requieres me to specify a password several times. I tried this.... type text(<password field>,$list item(%Passwords,$list position(%Passwords)),"Standard") Didn´t work. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted August 29, 2017 Report Share Posted August 29, 2017 You can use set list position to reset the position. set list position(%Passwords,0) Quote Link to post Share on other sites
hecolivares 1 Posted August 29, 2017 Author Report Share Posted August 29, 2017 You can use set list position to reset the position. set list position(%Passwords,0) What if I´m looping? I might be on cycle 5 for example Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted August 29, 2017 Report Share Posted August 29, 2017 You can do something like this clear list(%Passwords) add list to list(%Passwords,$list from text("5325324 65464 74564356 ^546546 654646"," "),"Delete","Global") loop(10) { set(#currentPassword,$next list item(%Passwords),"Global") if($comparison(#currentPassword,"=",$nothing)) { then { alert("list will reset") set list position(%Passwords,0) } else { } } } Quote Link to post Share on other sites
HelloInsomnia 1103 Posted August 29, 2017 Report Share Posted August 29, 2017 Set it as a variable and then use the variable wherever you need the password. 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.