I do not believe there are any plans to add conditional operators beyond the > or < ones (which are typically used to count successes in systems where you roll several dice and count up the ones that are above number X). So IF/THEN, AND, OR, XOR, etc. are unlikely to be available to the macro system. Rugged reroll has some additional macro functionality in that you can (effectively) infinitely nest macros, but I don't think they're going to go much farther than that by design (macros are not the API). That being said I just have it show me the AC since manually seeing that someone rolled X compared to Y and determining which is higher should be pretty easy. The advantage of doing it manually is that you can easily calculate combat modifiers without needing a roll query. For example, if a Rogue got a 21 to hit vs. AC 22, in your formula it would show as a miss (output 0), but if that rogue has combat advantage (4e) or flanking (3.5/Pathfinder) the roll is instead a 23 and he hits. This is easy to do with the numbers, harder if you're doing a comparison. Just something to consider.