=HasFlag(%INDI%,"Private")
or
=HasFlag(%INDI%,["Select Flag"])
The second example, when used in a query, causes a prompt to be displayed so that you can either type in the flag name, or select it from a dropdown list, when the query is run.