Feature report help with conditional statement on select multiple questions

536
1
03-23-2021 06:47 AM
RobBlash
Occasional Contributor III

I am trying to set up an "OR" condition on a select multiple question in my feature reports. I've tried the following with no luck, where am I going wrong? The help falls short here with a very brief mention of the parameters but no syntax examples.

${if inv_inspection_locations | selected:"WaterMain" || "CurbStop" || "Meter"}

${if inv_inspection_locations | selected:"WaterMain" || selected:"CurbStop" || selected:"Meter"}

${if inv_inspection_locations | selected:"WaterMain" || inv_inspection_locations | selected:"CurbStop" || inv_inspection_locations | selected:"Meter"}

 

1 Reply
BarbaraWebster1
Esri Regular Contributor

Hi Rob,

Try enclosing each condition in parentheses:

${if (inv_inspection_locations | selected:"WaterMain") || (inv_inspection_locations | selected:"CurbStop") || (inv_inspection_locations | selected:"Meter")}

 

-Barbara