[[*template:eq=`1`:then=`[[*createPDF]]`]]
the workaround I've found is using the 'IF' addon and checking it against the template id as you've suggested
It's working fine.[[If? &subject=`[[*template]]` &operator=`inarray` &operand=`1,2,7` &then=`[[*createPDF]]` &else=`No PDF` ]]