![]() ![]() “Loop C” has a single choice question, Q10.Īfter completing the nested loops section, I want to pull the answer that was coded in Q10, while the iterations state was this: “Loop A” was in its fourth iteration, “Loop B” was in its second iteration, and “Loop C” was in its fourth iteration. The list indexes order should be from the most outer loop to the most inner loop.Įxample: In my survey I have 3 nested loops, “Loop C” that is nested in “Loop B” that is nested in “Loop A”. GetParentIterationName(int level ): Gets a loop chapter’s level and returns its current iteration name (used exactly as is in GetParentIterationIndex()).ĬreateMultiIterationsString(int iterations ) :Gets a list of iteration indexes from all relevant loop chapters, and creates a indexes string to later use to pull values entered in a specific iterations state. SetTextFormat(CurrQues,SelectedAnswerTextIter(QRef(2),GetParentIterationIndex(1)) (“Loop A” is level 1 from “Loop B” point of view) So, I’ll put this code in the “loop b” question’s start script: I want to pipe the text of the selected answer in Q2 that is in loop A, inside the text of the question I’m in currently (in loop B). The current iterations state is: Loop A is in its second iteration, and loop B is in its fifth iteration. I’m currently inside a question in loop B. GetParentIterationIndex(int level ): Gets a loop chapter’s level and returns its current iteration index.Įxample: Loop A is the parent of Loop B. ![]() The following functions refer to referencing the Iteration sequence. It is important to note that each iteration has its own execution order so in a given time during run time we may be at the (for example) 2 rd iteration of the outer loop, the 3 rditeration of the first inner loop and the 1 st iteration of the second inner loop (can be represented as iteration 2-3-1 for example). For example, in the below screen shot, from “Loop 3″ point of view, its level is 0, its “parent” loop level (which is “Loop 2″) is 1, and its “grandparent” loop level (which is “Loop 1″) is 2. Yet from “Loop 2″ point of view, its own level is 0, and its “parent” loop level (“Loop 1″) is 1. To make the video player loop the specified video file, you must include the -loop option as part of the command. It will continue to loop the video file until the program is closed. Each chapter in a nested loops chapters structure has a “level index”, starting from the most inner loop, all the way up to the outer loop. OMXPlayer has functionality that allows you to loop through a video.I surveyed available video players and found OMXPLAYER was the only one that could. So for instance, as you can see in the below screen shot, if chapter “Loop 2″ is nested in chapter “Loop 1″, then “Loop 1″ is considered as the “parent” of “Loop 2″: 5 Chapter 2: Preparation Figure 1: Raspberry Pi Software Architecture. Nested loop (except for the most outer loop chapter / first loop chapter) is a sub-chapter of the loop chapter above it. ![]()
0 Comments
Leave a Reply. |