Exists function in Architect expressions

Hi,

I was wondering if there is an equivalent of the DataType:exists(List) function inside of the Architect expressions?

Kind regards,

Timothy

Hi Timothy, in the Architect you can do DataType:count(List).isgreater(0). This will be automatically optimized to DataType:exists(List) at runtime.

You can verify this in the expression debugger in your application. If you enter “contacts:count({contacts,this}).isgreater(0)” and click Profile and then ‘Optimizing took …’ in the profiling tree, you will see that it becomes “contacts:exists({contacts,this})”.

Hi Wim,

Thank you for the reply.

In hindsight this makes total sense.