0 Replies Latest reply: May 21, 2009 4:40 AM by 702478 RSS

    Logic Operator "OR" does not work as expected

    702478
      Hi,

      I'm having troubles adding conditions to a query:

      If I use the following query the method does return one corresponding contact:

      query = new Query("TITLE", Query.CSDK_OP_GE, "0");

      but if I add another condition to the query using the logical operator "or" no results are returned:

      query = new Query("TITLE", Query.CSDK_OP_GE, "0");
      query.addCondition("FN", Query.CSDK_OP_GE, "0", Query.CSDK_LOP_OR);

      (looking at the data even an xor should return something)

      Thanks,
      Petra