Jdbi string template engine conditional with expression

382 views Asked by At

I'm trying to use jdbi string template engine with an expression in an if condition. I tried different versions:

<if(expr(range.equals(\"xxx\")))>
<if(expr(range==\"xxx\"))>
<if(expr(range=\"xxx\"))>
<if(range==\"xxx\")>

but I haven't found a way to use the if condition with a logical expression instead of a boolean value. Is it possible a such behaviour or I have to pass N boolean variable to my dao method?

0

There are 0 answers