Skip to content

Min / Max Int ​

Outputs the smallest (Min) or largest (Max) of 2 to 5 int inputs. The number of input ports follows the Inputs setting. Use it to pick the highest-priority mode number, the lowest counter value or to combine int flags (Max acts as OR and Min as AND on 0/1 flags). To work on double signals, use Min / Max Double.

Category: Math

Ports ​

PortKindSignalNotes
in_1Control inputInteger
in_2Control inputInteger
in_3Control inputIntegerShown when Inputs is at least 3
in_4Control inputIntegerShown when Inputs is at least 4
in_5Control inputIntegerShown when Inputs is at least 5
outControl outputInteger

Parameters ​

ParameterTypeDefaultUnitsDescriptionID
OperationChoice: Min / MaxMin—Min = output the smallest input. Max = output the largest input.op
InputsChoice: 2 / 3 / 4 / 52—How many input ports the block has (2-5).num_inputs