I'm wondering if it is possible to use conditional of Velocity in live template. The general feeling I get from looking at different post, is that the template system in IntelliJ is based on the Velocity engine.
However when I try to user If contidional in a live template it does not seem to work.
I'm wondering if I am missing something ( like template are not at all based on velocity, or only support the variable option..)
As and example the live template I'm trying to do is a template that generate a wrapper method around the real method ( the wrapper create a database connection, call the method with that connection and close the connection )
below is the code.