I have this velocity template. It works fine in one case, but doesn't in another. If I remove the elseif
it works fine. Has anyone encountered this?
#if (some condition)
## Do something
#elseif
## Do something else
#end
I have this velocity template. It works fine in one case, but doesn't in another. If I remove the elseif
it works fine. Has anyone encountered this?
#if (some condition)
## Do something
#elseif
## Do something else
#end
I don't know Velocity, but normally elseif
is used with a second condition.
else
seems to be what you need.
#if (some condition)
## Do something
#else
## Do something else
#end