How to replace the not equal sign !=

I am struggling with a query because the unequal sign != is missing in the Rule-based Row Filter or Splitter, or also in the Rule Engine node.

I need to check two pairs of values for unequal != in a query if one of them is above 0, so:

B > 0 AND A != B OR D > 0 AND C != D => TRUE

Only if B is above 0 and there is a difference between A and B or if the same pattern applies to the values C and D, it is TRUE.

How can I perform this expression without the != sign?

Because B > 0 AND A == B OR D > 0 AND C == D => FALSE is not the same.