Jump to content
UBot Underground

Recommended Posts

hi

 

i make script and i make loop in it I have texts and images that should every cycle in loop take one text and one image 

 

 I  but in loop number       ( $list total)  , I but in the loop  (Set) $next list item  to my texts and my images

 

 

it's work by take texts and images and post it together  now …! how can I make the loop stop when he finish the texts list or images list

 

what should but in ( Loop number ) 

 

Link to post
Share on other sites

try

set list position(%images,0)
set list position(%texts,0)
if($comparison($list total(%images),">=",$list total(%texts))) {
    then {
        set(#loopMax,$list total(%images),"Global")
    }
    else {
        set(#loopMax,$list total(%texts),"Global")
    }
}
loop(#loopMax) {
    set(#image,$next list item(%images),"Global")
    set(#text,$next list item(%test),"Global")
    if($both($comparison(#image,"!=",""),$comparison(#text,"!=",""))) {
        then {
            comment("Do something")
        }
        else {
        }
    }
}

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...