Rabbinatix
Sign inGet started
Store

Lowest and highest

FreeLogic
@rabbinatix/lowest-and-highest by Rabbinatixupdated Oct 4, 2026

The smallest and largest number of a list, worked out side by side.

Sign in to add

Parallel runs its branches side by side (in the simulator in a fixed order, so runs repeat exactly), then fires Completed. Each branch sorts the list its own way and keeps the first item.

Shows: Parallel, Sort (ascending and descending), Get Item, Length.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Lowest and highest. 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
low: Number (may be empty)
high: Number (may be empty)
count: Whole number
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 12
Lowest and highest
numbers
Parallel, Flow control. 1 input, 3 outputs. step 2 of 12
Parallel
Branch 0
Branch 1
Completed
Sort, Collection. 1 input, 1 output. step 3 of 12
Sort
array
result
Get Item, Collection. 2 inputs, 1 output. step 4 of 12
Get Item
array
index
item
Set Variable, Data. 2 inputs, 2 outputs. step 5 of 12
Set low
value
value
Sort, Collection. 1 input, 1 output. step 6 of 12
Sort
array
result
Get Item, Collection. 2 inputs, 1 output. step 7 of 12
Get Item
array
index
item
Set Variable, Data. 2 inputs, 2 outputs. step 8 of 12
Set high
value
value
Get Variable, Data. 0 inputs, 1 output. step 9 of 12
Get low
value
Get Variable, Data. 0 inputs, 1 output. step 10 of 12
Get high
value
Length, Collection. 1 input, 1 output. step 11 of 12
Length
array
length
Return, Input / output. 4 inputs, 0 outputs. step 12 of 12
Return
low
high
count

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":[4,9,1]}{"low":1,"high":9,"count":3}
Empty{"numbers":[]}{"low":null,"high":null,"count":0}
Try it
Versions
In this package
Lowest and highest (entry)