Hi there,
I can not easily find a way to skip a rest of complex template if some condition is met. In quite simple templates this could be done by if-else blocks but when there are many perl blocks it could be difficult because each block is processed independently. I would be glad if worked something like (for queue change) in pseudo-code:
{ print ticket_header_info(); compute $condition; if $condition print something; } { compute $condition; #the same condition as above exit if $condition; } ADITIONAL INFO: some text here
So if the condition is met then skip processing (and printing) the “aditional info” section and below. How can I do that while return
is not enough because it wouldn’t stop perl from processing the other blocks? But exit
is too powerfull because the template is not processed ever.