How to do two consecutive if statements?

I am trying to create a shared action that I can use to: (1) skip the slide if the slide has been visited, (2) mark the slide as visited, (3) if a condition is true then change the state of an object to state 1 and increment a variable by one but if it is false then change the object to state 2 and not increment the variable.

If the slide has been visited, I want to skip it and not do anything else.

If the slide has not been visited, I want to mark it as visited, and then check a condition, depending on that condition it would do (i) change object to state one and increment a variable by one or (ii) change the object to state two and not increment the variable.

Why?

I asked the user a question, if they got it right I want to tell them that and add one to their score. If they got it wrong I also want to tell them and not add anything to their score. Either way, once I have asked the question and given the feedback, I do not want the user to be able to go back to the question or feedback slide. And I am using the skin viewer navigation. Therefore, I cannot eliminate the back button in those two slides (which would make it much easier).

In a normal programing language I could write:

10 If visited=1 then next_slide (and exit this program);

20 let visited = 1;

30 if answer=correct then xxxx else yyyy;

I cannot figure out how to do this with advanced actions and decision blocks.

Could someone help me on this?

Thanks.

The post How to do two consecutive if statements? appeared first on eLearning.

Question on Advanced actions, decision blocks, and two sequential if.
The post How to do two consecutive if statements? appeared first on eLearning.Read MoreDiscussion, decision block, discussion, discussions, elearning projects, Shared Actions

Leave a Reply

Your email address will not be published.