Handle `if [not] ..` blocks in template for `decanat-engine`.