CountSubset (Arraylist function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Syntax terms) |
||
Line 11: | Line 11: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%count</th> | <tr><th>%count</th> | ||
<td> | <td>A numeric variable to contain the count of matching items.</td></tr> | ||
<tr><th>al</th> | <tr><th>al</th> |
Revision as of 19:45, 17 July 2012
Number of items matching a criterion (Arraylist class)
[Introduced in Sirius Mods 7.8]
This page is under construction.
Syntax
%count = al:CountSubset( selectionCriterion)
Syntax terms
%count | A numeric variable to contain the count of matching items. |
---|---|
al | An Arraylist object. |
selectionCriterion | A SelectionCriterion object, which is a relational expression that is applied to an al item value to determine whether the value satisfies the expression. The expression consists of a function, an operator, and a numeric or string value.
For example, The function in the criterion is a method value (a method or class member name literal, or a method variable) for a method that operates on items of the type specified on the al Arraylist declaration and that returns a numeric or string value. This is described further in "Specifying a SelectionCriterion's parameters". |
Usage notes
- A CountSubset call with a particular selection criterion is equivalent to a count of the items in the subset returned by the SubsetNew method with that criterion.