Hey together,

I have once again some difficulties to find the correct syntax writing an if-condition with a logical AND:

return( 
if (
not{doc('XML_PATH')/Note1/ChildNote1= doc('XML_PATH')/Note2/ChildNote2} and
not{doc('XML_PATH')/Note3/ChildNote3= doc('XML_PATH')/Note4/ChildNote4} and
then error() 
else 'OK'
)

may I even compare two Notes of different xml files like that using the "="-operator?

Regards,
Gleb