that was my first logical option but since i'm not doing a direct comparison i wasn't sure how the sintaxis could be,
anyway, this:
QBR.value(strfmt('(purchQty != "%1")',queryvalue((Purchline.receivedInTotal()+purchline.RemainPurchPhysical))));
is not working either, i'm not sure if the function is returning the value it should and debugging is not been very helpful this time.