Sorry for confusion Lukas,
Let me give more details.
I have a scenarios here
Result a = ctx.select(cn.field("ID")).from(cn)
.join(hp)
.on( hp.PLANE_ID.eq(cn.field("PLANE_ID")) )
.join(cd)
.on( (cn.field("HC1_LEAF_ID")).eq((cd.HC1_LEAF_ID).nullif(0)))
.fetch();
In the above , there is a condition .on( (cn.field("HC1_LEAF_ID")).eq((cd.HC1_LEAF_ID).nullif(0))).
In which currently cn.field("HC1_LEAF_ID") = null. So i am not able to compare it if it is equal to cd.HC1_LEAF_ID.
Is there any easy way/build-in-method to check , if the cn.field("HC1_LEAF_ID") not equal null then only check if it is equal to cd.HC1_LEAF_ID ? In one statement.
Thank you.
~Shyam