Description
Select records whose branch label occurs in selectedBranches; return selectedRecords, distinctItems and repeatedSelectedRecords = selectedRecords-distinctItems.
Assessment records use item identifiers, branch labels, hierarchy references and deadline metadata. Literal matching and position counting preserve the supplied conventions without validating content, actual eligibility or semantic answer equivalence.
Select records whose branch label occurs in selectedBranches; return selectedRecords, distinctItems and repeatedSelectedRecords = selectedRecords-distinctItems.
When to use this tool
Use Assessment Branch Item Count when checking an explicit assessment-record or answer-token rule.
How to use the tool and how it works
- Enter branchLabels, itemIds, selectedBranches. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read selectedRecords, distinctItems, repeatedSelectedRecords. Use the output convention below.
Require equally long branchLabels and itemIds. Select records whose branch label occurs in selectedBranches; return selectedRecords, distinctItems and repeatedSelectedRecords = selectedRecords-distinctItems.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| branchLabels | Branch Labels | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| itemIds | Item Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| selectedBranches | Selected Branches | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| selectedRecords | Selected Records | Required. Safe integer. |
| distinctItems | Distinct Items | Required. Safe integer. |
| repeatedSelectedRecords | Repeated Selected Records | Required. Safe integer. |
{
"input": {
"branchLabels": [
"A",
"B",
"A"
],
"itemIds": [
"i1",
"i2",
"i1"
],
"selectedBranches": [
"A"
]
},
"output": {
"selectedRecords": 2,
"distinctItems": 1,
"repeatedSelectedRecords": 1
}
} Limitations and assumptions
- Repeated selected branch labels do not multiply inclusion, while repeated item IDs count once in distinctItems. This is record counting, not adaptive-test routing or bank completeness validation.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Review the actual record structure and approved grading policy when identity, content or official outcomes matter.
References
Similar or alternative tools
- Assessment Option Position Index
If option is found, index is its array position plus origin; otherwise found = false and index = -1.
- Answer Key Multiple Accepted Token
Normalize answer and each accepted token by optional trim, then optional JavaScript lowercase when caseSensitive is false.