Render Conditions - render if a value is in any row in a model?

  • 1
  • Question
  • Updated 4 years ago
Is there any way to accomplish this?

I want to render if the value of my field is in any row of a model. Is there a way to access all the rows with merge syntax? Or do I have to do the conditional rendering with javascript/jquery?
Photo of Matt Sones

Matt Sones, Champion

  • 31,986 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 43,156 Points 20k badge 2x thumb
Use another model with the condition you have to determine this. 
  1. Id in first model Id's
  2. field = Value x
Then just be sure to update the model everytime you need to in order to know.