Skip to main content
Participating Frequently
July 23, 2009
Answered

Using Variables to Control Branching

  • July 23, 2009
  • 1 reply
  • 901 views

I would like to use a variable to control branching.  Upon entering the project, I would like for the user to select one of five types which describes the type of employee -- (licensed provider, clerical, housekeeping, etc).  I would like to assign this choice to a variable.  Then as the project contines, at certain points, I would like to recall that variable and based on the content of the variable have the user sent along specific branches.  This would allow users to see only the training on a subject that pertains to their job.  Any ideas/comments/suggestions?

This topic has been closed for replies.
Correct answer

I did something similar on a recent project with great success.  On the first screen, I would use buttons to assign a value to the variable based on the user's role.  Then, at the branching points, go to the slide properities and run a conditional statement on slide exit to redirect to the appropriate slide based on the value of the variable.  You will need to create a separate aciton for each branching point.

1 reply

Correct answer
July 23, 2009

I did something similar on a recent project with great success.  On the first screen, I would use buttons to assign a value to the variable based on the user's role.  Then, at the branching points, go to the slide properities and run a conditional statement on slide exit to redirect to the appropriate slide based on the value of the variable.  You will need to create a separate aciton for each branching point.

Participating Frequently
July 23, 2009

I would maybe even go a step further to say that if statements can be put on the opening of the frame and depending on the variable it may change the information on the page slightly.  This allows you to reuse the learning objects for the frame for all types of employees but customize it for that type of employee.

I have done some testing with having the user select MAC or PC on the first frame and then based on that I have it so that on slide enter the frame decides which images to use.  Testing has gone well but I do recommend that you have one be the default so that if they somehow skip the variable selection page that it will show something.

If you wanted you could also add a action that states that if no variable is selected to goback to frame 1.

Hope it helps

Marge-BAuthor
Participating Frequently
July 23, 2009

Outstanding.  I appreciate the help.