For example if i want to verify that every identity is from specific location example
[Boston, New York City, Chicago] then a specific service now ticket would be created. I have the identity created filter already filtered for specific employee numbers, but we also need specific location? Would I just need to use a bunch of compare strings or is there a simpler way to achieve my goal?
From Your scenario as you mentioned, you are using Identity Created trigger. The json of that particular trigger looks like this. [Note: The below JSON is just a sample from documentation].
So, I guess you can include your both conditions in your first filter like below.
$.attributes[?(Your First Condition && @.department in ['Boston', 'New York City', 'Chicago'] )]
Here, the attribute I have used is department to show how it can be done but location attribute depends upon your identity and JSON thrown by the trigger condition. Please check if the above condition works in your scenario.