For example, if I have the code:
featureLayer.setDefinitionExpression("TYPE='BLUE'");
Can I set multiple expressions such as TYPE='RED' and TYPE='BLUE'?
If so, what is the proper syntax to do so?
Thanks!
Solved! Go to Solution.
Eric,
Sure it would be:
featureLayer.setDefinitionExpression("TYPE='BLUE' OR TYPE='RED'");
Eric,
Sure it would be:
featureLayer.setDefinitionExpression("TYPE='BLUE' OR TYPE='RED'");
Eric,
AND is used when you want another field to have another value like "Type = 'RED' AND Lot = 'STUDENT'"