Scripting in Nyx question
Posted: Thu Aug 30, 2012 9:15 pm
Where in Nyx's scripts can if statements be placed, and can they test button choices of the previous page that directed to them?
Example:
int count = 0;
start#page(('text blah blah'),
pic(blah),
yn(page2#,page2#)
);
page2#page(('text blah blah'),
pic(blah),
if(yes), count++;
if(count==10), end;
else delay(0sec,start#)
endif);
Example:
int count = 0;
start#page(('text blah blah'),
pic(blah),
yn(page2#,page2#)
);
page2#page(('text blah blah'),
pic(blah),
if(yes), count++;
if(count==10), end;
else delay(0sec,start#)
endif);