You can definitely use rewrite maps in conditions. In fact, if you use URL rewriter UI, click "Add Rules" and then choose "Rule with Rewrite Map" rule template, it will generate for you the rewrite rule that uses rewrite map with a condition that references a rewrite map that uses...