Difference beteween not() and false() in Xpath - Mendix Forum

Difference beteween not() and false() in Xpath

0

Today, I encountered an issue in my code. I needed to retrieve evaluations with at least one unresolved pending. However, my initial approach using "not()" did not work as expected. I resolved the issue by changing "not()" to "false()" in my microflow.

 

  1. The problem with using "not()" in this XPath was that it only returned evaluations that didn't have any resolved pending.

 

  1. I addressed this problem by using the "false()" function. As a result, I was able to retrieve all evaluations that had at least one unresolved pending.

 

 

asked
3 answers

So, what's your idea?

Created

Yes, John, perfect!

Created

It's indeed a functional difference you clearly point out, which is intended.

If you want to retrieve evaluations that don't have any resolved pending, you can use the first xpath. If you want to retrieve evaluations that had at least one unresolved pending, you can use the second.

Created