Expression for a list > a certain number

0
I somehow don’t get why writing expressions is so difficult. I retrieve a list in a microflow through an aggregate list activity which returns an integer. When I want to compare the list size like this: $myEntriesList >= 3 through an expression in a decision node in the microflow, Mendix throws me an error. What is the correct syntax to formulate such an easy check? Thanks.
asked
2 answers
2

Hi Philipp,

By the looks of it you're comparing the List in your decision to 3 instead of the Aggregated Integer that you obtained by using the Aggregrate List > Count.

answered
8

Hi Philipp,

After retrieving the list, use aggregate list, In decision activity use the output of aggregate list activity (Eg., $count>=3). If the problem exists, please post screenshot here. 

answered