# Set operator

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

A set operator, ForAllValues or ForAnyValue, is a prefix on a condition operator that compares a multivalued request key, such as aws:TagKeys, with the values in the policy. ForAnyValue is true if at least one value matches and ForAllValues is true if every value does. AWS says to use them only with multivalued keys.

## An example, sourced

AWS notes that ForAnyValue comparisons on aws:TagKeys are case sensitive, which stops users from using a different case of a tag key to get around a policy.

## Why it matters here

AWS says the ForAllValues qualifier returns true if there are no context keys in the request, and suggests adding a Null condition to prevent missing keys evaluating to true.

## Related pages

- [IfExists operator: meaning and an example](/glossary/ifexists-operator/)
- [Service last accessed information: meaning and an example](/glossary/service-last-accessed-information/)
- [Credential report: meaning and an example](/glossary/credential-report/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://iampolicygenerator.com/glossary/set-operator/

This site is not affiliated with Amazon Web Services. AWS service and product names are used only to describe AWS services.
