Difference between in/not in/includes/excludes in conditional rendering

  • 1
  • Question
  • Updated 2 years ago
  • Answered
When using conditional rendering for multiple specified values on a component, what is the difference between in and includes, as well as, not in and excludes?

I thought that they would be the same thing, but obviously are not if there are different options. Thanks!
Photo of Sean

Sean

  • 630 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
What version of Skuid are you running? In 9.5.4, these titles have been changed to alleviate confusion.

Photo of Sean

Sean

  • 630 Points 500 badge 2x thumb
Thanks for the reply Stephen.

I have 9.5.4 installed.

If you selected "Multiple specified values" in Content, you are not seeing the four options I had listed?

(Edited)
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Those are what I see. I didn't have it selected with Multiple Specified Values. I'll ask around and see what I can find.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
You can think of it like a google search.

In:
Nashville Tennessee
This will bring in anything that has Nashville or Tennessee or both.

Includes:
"Nashville Tennessee"
This will only bring back results that include both Nashville and Tennessee together as a whole.
Photo of Sean

Sean

  • 630 Points 500 badge 2x thumb
Thank you Stephen! That's very helpful.