PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Use of "contains" in conditional logic?

  1. I am making products that are conditional upon age groups. Unfortunately, they aren't in very systematic approach, most are like 5-6, 7-8, etc. I was going to make two logic rules stating if age is 5 and if age is 6, but for a bunch of products thats double the work. Then I noticed the "contains" rule. I checked the docs but for something that causes the most questions it has the least documentation and zero examples of usage.

    So the question is, can i use one logic rule and say if "age" CONTAINS "5 or 6", will that work?
    It doesnt work if i put 5,6 and it doesnt work saying 5 or 6.

    Posted 12 years ago on Sunday December 2, 2012 | Permalink
  2. Have you already tried it and had questions about the results? Do you have a form online that we can take a look at?

    I wonder if you could use a value which contains the ages, like 56, or 78, then your "contains" would match that string. I believe contains is designed to match the string, not the choice. But I am curious what you found out while testing.

    Posted 12 years ago on Sunday December 2, 2012 | Permalink