This discussion is archived
1 Reply Latest reply: Jun 20, 2013 9:40 PM by Fiona Guy RSS

Rule Development - "one of the following"

1010199 Newbie
Currently Being Moderated

Hi there,

 

I'm having trouble with my rule base. This should be a basic solution but I can;t think of it. I am writing about Food Claims, and I would like to say:

 

1) Your food claim is permitted if it is one of the following.....(then list all the options within that if statement).

2) Then,  If it is one of the following, does it meet the requirements?

3) If it does not meet the requirements, then you cannot have that food claim on your package.

 

However, when I am writing my rule base and test it, if the user selects a food claim and it ends up not meeting the requirements, it doesn't say you cant have that on the package, it just goes back to Question 1 and asks if your food claim is the next one on the list?

 

How do I write my rules so that the user can only select one food claim and see if it meets the requirements? Rather then going through each food claim individually until all options have been investigated.

  • 1. Re: Rule Development - "one of the following"
    Fiona Guy Explorer
    Currently Being Moderated

    Assuming your rules look something like this:

     

    [conclusion] Your food claim is permitted if

    [Level 1] any

    [Level 2] your food claim is (option 1) or

    [Level 2] your food claim is (option 2) or

    [Level 2] your food claim is (option 3)

    [Level 1] and

    [Level 1] your food claim meets the requirements

     

    [conclusion] Your food claim meets the requirements if

    [Level 1] your food claim meets requirement 1 and/or

    [Level 1] your food claim meets requirement 2 etc

     

    Or perhaps you have individual rules with the requirements for each option(?). Either way, if the options are mutually exclusive (only one per person) you might want to set them using a single text variable:

     

    [conclusion] your food claim is (option 1) if

    [Level 1] the food claim type = "option 1"

     

    [conclusion] your food claim is (option 2) if

    [Level 1] the food claim type = "option 2"

     

    That way the interview will collect the food claim type once and set all of your options from there so it won't ask it again. Does that help?

     

    Fiona

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points