Skip to main content
Inspiring
June 12, 2020
Question

Troubleshooting and or operators in advanced actions

  • June 12, 2020
  • 2 replies
  • 1659 views

Well, I'm stumped. I thought I had the conditional logic worked out, but perhaps not. I'm trying to manually check an answer to make sure it contains specific words and/or phrases. This is complicated by the nature of Captivate not matching text if the case is different, so I have to account for all lowercase, all uppercase and title case. If the answer is 2 or 3 words, it's not a big deal, but with longer text strings I figured using the custom and/or feature would make my life easier. Now that I'm testing... no bueno! 

Here's the action preview for the field in question:

 

 

Assuming I am not missing something, that should required the answer to contain FL and 23481 and one of the following of each of the 'groups' of OR options:

aviation or Aviation or AVIATION, and

Simulation or simulation or SIMULATION, and

training or Training or TRAINING, and

NAS or Naval Air Station or NAVAL AIR STATION, and

Jacksonville or JACKSONVILLE

 

I can leave one of my seven options out and it still reads as correct/rue. If I leave two or more out, it I get the proper incorrect/false output.

This topic has been closed for replies.

2 replies

Lilybiri
Legend
June 12, 2020

My advice after more than a decade with Advanced (and Shared actions): avoid combinations of AND/OR. In most cases it can be replaced by using multiple decisions. That is a much safer solution due to the nature of AA structures. Or use JS.

Inspiring
June 12, 2020

I'm definitely leaning toward javascript. Some of my more involved slides already have more than 25 decisions.

Lilybiri
Legend
June 12, 2020

Your choice. For quiz slides I hesitate, because I have no idea if the resetting of one system variable will automatically lead to what is linked with it: resetting of the answers on questions. Needs testing. And what wit the transfer to the LMS because that is important as well? That is why I mentioned that this could perhaps be solved on the LMS side instead of in Captivate. Looking forward to see the results of the JS approach.

 

I never had 28 decisions, but have optimized a lot of advanced actions for clients with such an amount of decisions. In most cases it can be avoided by thinking out of the box, or using some other techniques. 

Stagprime2687219
Legend
June 12, 2020

This is exactly why I thought Family Feud was never a good computer game. If I speak the name JACKSONVILLE - I am golden but since I am timed and maybe not so good at typing to begin with and type in JCKSONVILLE - I am out of luck.

 

It looks like you're trying to validate a text entry box. Can I suggest maybe reworking that question into a series of questions with fewer possibilities or perhaps giving them the selections like a multiple checkbox sort of thing?

 

I think that would alleviate some frustration.

 

To address the original question - I think it is going to boil down to a nesting problem due to the mixture of both AND and OR operators.