This works:
<select "id=select" resultType="someType">
select * from sometable
<where>
<if test="id != null">
id = #{id}
</if>
</where>
</select>
but this not (because of xml syntax conflict)
<if test="id > 0">
id = #{id}
</if>
1) does the <if> construct only suppot "==" and "!="?
Is ther a way of doing >, <, >=, <= etc?
2) does it support "or" and bracketed logic?
one example in the usergude has "and":
<when test="author != null and
author.name != null">
Im guessing that "or" works, but not sure if you can do brackeded
logic, e.g:
<when test="(author != null and
author.name != null) or
somethingelse == true" >
thanks,