Are you an LLM? You can read better optimized documentation at /en\document\logic_rule.md for this page in Markdown format
Logical rules
Combines multiple rules into a single rule with the logical operators AND, OR and NOT (3.1.7+).
If a logical rule mixes domain sub-rules and IP sub-rules, put the IP sub-rules last to avoid unnecessary DNS queries.
AND
Matches only when every sub-rule matches at the same time.
AND,((sub-rule),(sub-rule)),PolicyName
AND,((DOMAIN-SUFFIX,axample),(DEST-PORT,443),(GEOIP,CN)),DIRECTOR
Matches when any one sub-rule matches.
OR,((sub-rule),(sub-rule)),PolicyName
OR,((DOMAIN-SUFFIX,axample),(DEST-PORT,443),(GEOIP,CN,no-resolve)),DIRECTNOT
Matches when the sub-rule does not match. Only a single sub-rule is allowed.
NOT,((sub-rule)),PolicyName
NOT,((AND,((DOMAIN-SUFFIX,axample),(DEST-PORT,443),(GEOIP,CN)))),DIRECT