AnsweredAssumed Answered

loop control

Question asked by Wicktor on May 1, 2016
Latest reply on May 1, 2016 by Wicktor

hello everyone,

I have a loop controlling the presentation of images (stored in container fields).

The presentation is user user-controlled by a previous menu where the user can choose the kind of images, the size, and the speed of transition.

The loop is basically as follows:


Pause/Resume Script [ Indefinitely ]

Show Custom Dialog ["Click button to start"]

Set Variable [ $counter ; Value: 0]


  Set Variable [ $counter ; Value: $counter + 1]

  Set Field [ ShowImage ; GetRepetition (StoredImages; $counter) ]

  Pause/Resume Script [ Duration (seconds): ShowTime]

  Exit Loop If [$counter = Count (StoredImages)]

End Loop


My questions is about controlling a loop, i.e. allowing the user at any point to revert the direction of the presentation, for example after viewing images 1, 2, 3, 4....N, the user may desire to revert the presentation going backwards 19, 18, 17......N, and then able to return going forward.


Thanks for any help,