Rabbinatix
Sign inGet started
Store

Average

FreeLogic
@rabbinatix/average by Rabbinatixupdated Oct 4, 2026

The mean of a list of numbers, rounded to 2 decimals; `null` for an empty list.

Sign in to add

Checks for an empty list first, so it never divides by zero.

Shows: Is Empty on a list, Sum, Length, Divide, Round.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Average. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
numbers: List of numbers
Outputs
average: Number (may be empty)
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 9
Average
numbers
Is Empty, Validation. 1 input, 1 output. step 2 of 9
Is Empty
value
result
Branch, Flow control. 2 inputs, 2 outputs. step 3 of 9
Branch
condition
True
False
Sum, Collection. 1 input, 1 output. step 5 of 9
Sum
array
sum
Length, Collection. 1 input, 1 output. step 6 of 9
Length
array
length
Divide, Operators. 2 inputs, 1 output. step 7 of 9
/
A
B
result
Round, Math. 2 inputs, 1 output. step 8 of 9
Round
value
decimals
result
Return, Input / output. 2 inputs, 0 outputs. step 9 of 9
Return
average
Return, Input / output. 2 inputs, 0 outputs. step 4 of 9
Return
average

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 2/2 pass
PassedExampleInputOutput
Three numbers{"numbers":[1,2,4]}{"average":2.33}
Empty{"numbers":[]}{"average":null}
Try it
Versions
In this package
Average (entry)