Add support for 'if' directives.