See example below.
If you run this script and just click continue each time, it follows the repeatadd correctly.
If you attempt to interupt the repeatadd by setting page 2, you need to continue setting page two until the repeatadd initial count has run out.
Code: Select all
start#page('Test set and unset count. Initially unset page 2 five times. Count times Page two appears unset.',action:mult(must(3#,2#),must(15#,2#),mustnot(10#,2#),mustnot(11#,2#),mustnot(12#,2#),mustnot(13#,2#),mustnot(14#,2#),must(11#,10#),must(12#,11#),must(13#,12#),must(14#,13#),pic("*.jpg"),repeatadd(5,2#),go(2#))); 2#page('Page 2. If this page is showing then page 2 is not set',pic("*.jpg"),action:mult(unset(5#),go(range(10,15,'page')))); 3#page('Page 3. If this page is showing then page 2 is SET.',pic("*.jpg"),go(15#)); 4#page('',pic("*.jpg"),action:goto(range(2,3,'page'))); 5#page('Page 5. Setting page 2.',pic("*.jpg"),action:mult(set(2#),goto(range(2,3,'page')))); 10#page('Page 10. Count 1. Select CONTINUE to continue counting, SET to set page 2.',pic("*.jpg"),buttons(4#,"Continue",5#,"Set 2")); 11#page('Page 11. Count 2. Select CONTINUE to continue counting, SET to set page 2.',pic("*.jpg"),buttons(4#,"Continue",5#,"Set 2")); 12#page('Page 12. Count 3. Select CONTINUE to continue counting, SET to set page 2.',pic("*.jpg"),buttons(4#,"Continue",5#,"Set 2")); 13#page('Page 13. Count 4. Select CONTINUE to continue counting, SET to set page 2.',pic("*.jpg"),buttons(4#,"Continue",5#,"Set 2")); 14#page('Page 14. Count 5. Select CONTINUE to continue counting, SET to set page 2.',pic("*.jpg"),buttons(4#,"Continue",5#,"Set 2")); 15#page('Page 15. Page 2 must be set for this page to appear.',pic("*.jpg"),go(start#));