Total of a score card
FreeLogic@rabbinatix/total-of-a-score-card by Rabbinatixupdated Oct 4, 2026
Adds up every value of `{ math: 8, art: 9.5 }` and counts the fields.
Values turns a record into a list, so list nodes like Sum work on it.
Shows: Values, Sum, Length.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Score total. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
scores: Record
Outputs
total: Number
subjects: Whole number
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 5
Score total
scores
Values, Object. 1 input, 1 output. step 2 of 5
Values
object
values
Sum, Collection. 1 input, 1 output. step 3 of 5
Sum
array
sum
Length, Collection. 1 input, 1 output. step 4 of 5
Length
array
length
Return, Input / output. 3 inputs, 0 outputs. step 5 of 5
Return
total
subjects
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 2/2 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| Two subjects | {"scores":{"math":8,"art":9.5}} | {"total":17.5,"subjects":2} | |
| None | {"scores":{}} | {"total":0,"subjects":0} |
Try it
Versions
In this package
Score total (entry)
