Using the state of an image in a conditional statement

Hi,

Since there doesn't seem to be an easy way to test whether a slide has been viewed (I have submitted a feature request for that)...

...and since there is no support for lists or arrays yet (also a feature request)...

...AND since I didn't feel like having a different variable for every single slide in my presentation...

...I thought I'd be clever by having an image on the slide set to "Show Always" but initially set to a state of "Hidden" and then when the slide ends, I'd change the state to "Normal", which works...

Then I'd add the condition to any trigger "if image == Normal", which doesn't work as I had expected...

...which is to say, it doesn't work at all!

So my question to you all is, why?

Also, I am not opposed to the idea that I may be making this more complicated than it needs to be so, how do you track the visited status of your slides?

TIA,

Al

9 Replies
Richard Karel

Hi Al, How are you collecting this slide visited data? (Or are you determining what appears on screen based on the learner's prior visit?) The slide itself has properties that are in the "When revisiting" drop down:  "Automatically decide" / "Resume saved state" / "Reset to initial state".  You can learn about these here

Allan Grego

Hi Richard,

I'm aware of that setting and I'm already using "Resume Saved State" but I need more control than that because I need certain behaviours to happen/not happen according to the visited status of the slide.

Again, I could just use a Boolean variable for every slide, I was just hoping for a more elegant solution.

I've successfully tested for "Checked" states before so I was sure that "Normal" or "Hidden" states would have worked as well...alas...they don't.

Ashley Terwilliger

Hi Allan, 

I don't know that I've seen a way to check that each slide was viewed, but are you looking to restrict navigation in some way or send results to your LMS? The normal method of tracking by slides viewed should report that status to your LMS once they've been on a slide it counts as viewed, but in terms of saving the slide's states that doesn't occur until they've left the slide. 

Allan Grego

Hi Ashley,

I'm looking for different things to happen when you view a slide the first time as opposed to subsequent times. What I want to do has nothing to do with reporting to an LMS. It's just functionality.

I want things to happen differently when/if a user goes back to a slide. So I could just set up triggers to happen according to a simple condition. My issue is the condition currently requires a different variable for every slide.

For example, I have a slide that prompts a user to enter their first name and then presents them with an introduction. If that same user goes back to the same slide, I don't want to ask for their name again. I know I can set this up differently to navigate to different slides according to whether I already have their name in a variable, but that's not the point here. The point is testing for the "Hidden" or "Normal" state doesn't work the way you would think it should, or even the way the "checked" state works.

Anyway, I'm realizing that creating a variable for each slide is unavoidable for now. Hopefully, there will be a better way in subsequent SL release, or at the very least, they fix the states bug.

Ashley Terwilliger

Hi Allan,

Thanks for clarifying and providing a bit more information. I do see an issue reported just the other day to our QA team in regards to conditions that rely on the normal state of an object not working as expected. I'd want to take a look at your file to see if it was the same issue before I connected this thread to it. But I did want to share that using a different variable for each slide does sound expected, especially if it'll be adjusted in more than one spot so that the variable doesn't inadvertently trigger something else unintended to occur. 

Allan Grego

Yes, if that is the way I end up building it, then I would definitely use a different variable for each slide.

I don't think the issue is just with "Normal" state as I tried testing with "Hidden" state to the same affect and just now I tried something different with "Visited" state where it worked in one condition, but not another on the same slide.

I just think testing with states in general seems to be flawed in SL2. Something that I hope gets fixed in future releases.

Thanks for your time.

Ashley Terwilliger

Hi Allan,

If you'd like to share what you've been working on we're happy to take a look. If you'd prefer to not share here in the forums, you can also send along to our team here and they'd gladly take a look as well and if it's something we're able to replicate we can then share with our QA team as a bug.