Skip to main content
JayC_in_WV
Inspiring
August 28, 2017
Answered

Issue with my Conditional Advance Action w/ Custom IF statement

  • August 28, 2017
  • 1 reply
  • 548 views

I have a conditional advanced action in which two of the conditions could be true at the same time.  To address this, I added an "assign" statement to the first of the two to indicate that that condition has been met.  The variable was added to the "IF" portion of the second condition whereas if it is true, then the entire IF statement will be false.  Here's what it looks like:

condition1 condition2

the problem is that it's not working.  All the appropriate variable are updating correctly; including advActStop. But, it keeps changing the state of feedbacki94 to Counterfeit_missed_some instead of leaving it at Counterfeit_found_all.  

If someone can point out what I'm missing I'd really appreciate it.

v/r

Jay

This topic has been closed for replies.
Correct answer Lilybiri

I am on the road, bit improvising now.

Here is a possible approach which avoids the AND/OR combi:

Replace the first condtion by a non-conditional action, and calculate the sum of the three variables :

   Expression v_sum = i94NoUvRead + i94PortRead

   Expression v_sum = v_sum + i94Spelling

Now you have 3 conditions:

  1. IF v_sum is equal to 3   Found All
  2. IF v_sum is less than 3  Found some
  3. IF v_sum is equal to 0   Found none

Hope this makes sense?

1 reply

Lilybiri
Brainiac
August 28, 2017

I would love to see that action totally. Can you please use the Preview button (top right control bar, first button)? Combinations with AND /OR more often than not don't work as expected. Maybe if I see th total action, I could propose a workaround.

Have a look at this blog post, where I explained in detail every button in this dialog box:µ

Advanced Actions Dialog box in Captivate 2017 - Captivate blog

JayC_in_WV
Inspiring
August 28, 2017

Here you go Lilybiri!  I forgot about this feature.

Lilybiri
LilybiriCorrect answer
Brainiac
August 28, 2017

I am on the road, bit improvising now.

Here is a possible approach which avoids the AND/OR combi:

Replace the first condtion by a non-conditional action, and calculate the sum of the three variables :

   Expression v_sum = i94NoUvRead + i94PortRead

   Expression v_sum = v_sum + i94Spelling

Now you have 3 conditions:

  1. IF v_sum is equal to 3   Found All
  2. IF v_sum is less than 3  Found some
  3. IF v_sum is equal to 0   Found none

Hope this makes sense?