Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Issue with my Conditional Advance Action w/ Custom IF statement

Explorer ,
Aug 28, 2017 Aug 28, 2017

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

475
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 28, 2017 Aug 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?

Translate
Community Expert ,
Aug 28, 2017 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 28, 2017 Aug 28, 2017

Action Preview.jpg

Here you go Lilybiri!  I forgot about this feature.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2017 Aug 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 28, 2017 Aug 28, 2017
LATEST

Thanks much Lilybiri!  I'll give it a try.

Have a good one...and safe travels.

Jay

UPDATE:  This worked Lilybiri!  I paired it up with the advActStop variable (i.e. for when the sum was less than 3 but also equal to 0) and it works great.  The Custom "IF" statement seems to have some bugs.

Thanks again for the help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources