Where can I find when within my course a custom variable is set?

Apr 20, 2023

Hi, everyone. I know that I can click on the Manage Variables function, but that only shows me when a variable is USED and I need to know where it is SET. Is there a way to do this?

I have a place in my course where I set an initial variable for the role of the learner. The content that displays is then customized to that learner.

I changed it from one role variable to another and it works for the majority of slides, but there seem to be places where it is keeping a 'memory' of the earlier variable. I am trying to make sure that this variable is not being set somewhere else.

All help appreciated!

3 Replies
Eric Schaffer

I think I know what you mean. If you go to the Story View, click on the Manage project variables box in the triggers area. It will open up a list of all variables in the project. It sounds like you know how to get here. If you then look under the Use Count list and see how many times it is being used in the project. Click on that number and you will see a list of places where it is located. 

I hope this helps. 

Deirdre Bradley

Thanks for reaching out, Eric! I left out a critical statement in my original post.

Because I have multiple possible roles, I set each role variable to TRUE when I want to produce a course with content just for that role.

Unfortunately, the count you reference only states where the trigger is used, but not where it a variable value is set (TRUE). 

That is what I was hoping to find, as it seems to be resetting somewhere and the Manager does not provide that information.

Again, thank you - I needed to clarify my post and you helped do that.

Walt Hamilton

Deirdre,

The Use Count will tell you where a variable is used, but if you look at the next line of text under that, it will give you the text of the trigger. Every place a T/F variable is changed, the text will begin with " Set [varname] to ...", or "Toggle [varName]."

Two suggestions:

Look not just for sets, but from the sound of things, the culprit might be a toggle.

I would probably use just one variable, a text variable. You can set it to things like "Role 1", "Role 2", etc. Then your conditions would be "if [roleVar] = "Role 1", and so on. Fewer variables make the project smaller and easier to track.