Add action and condition for counting list items
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3280203. --> Reported by: [mxh](https://www.drupal.org/user/1124384) Related to !161 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>We need to determine the number of items in a list.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>For counting, we could implement an action that counts items on a specified Token and sets the count result into another token. For convenience, we could additionally implement a condition "number of items" extending from StringComparisonBase. That count action would only address "real" lists as we already have "Compare two scalar values" that may directly count a string length.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3238206](https://www.drupal.org/node/3238206)
issue