How do I utilize variables in rules?

Anyway, the best I can tell, it DOES work to use $HOSTNAME$ in the rule.