Nodes ▸ Functions ▸ Conditionals

Apply

Applies a unary function, such as a logarithm or a square root, only where a condition holds, leaving other elements unchanged. The optional operand input (shown once connected or pinned) can supply the comparison value instead of threshold.

Applyx

Inputs

PortAcceptsRequiredDescription
x primitive(array) dataset required The array or dataset to modify
operand primitive(array) primitive(number) dataset optional, quiet: shown when relevant, connected or pinned Comparison operand; overrides the operand parameter while connected

Parameter ports

Added from the Parameters pane (⊕). While connected, each drives its parameter.

PortAcceptsModeDescription
threshold primitive(number) opt-in
drives threshold
Drives the Threshold parameter while connected
rtol primitive(number) opt-in
drives rtol
Drives the Rtol parameter while connected
atol primitive(number) opt-in
drives atol
Drives the Atol parameter while connected

Outputs

datasetprimitive(array)

Parameters

The Parameters pane shows only the parameters relevant to the current settings.

ParameterKindDefaultChoices / rangeUnitNotes
Condition
condition
choice none greater | greater_equal | less | less_equal | equal | not_equal | isclose | isnan | isfinite | isinf
Threshold
threshold
float none ⇄ port
Rtol
rtol
float none ⇄ port
Atol
atol
float none ⇄ port
Invert
invert
bool false
Function
function
choice none sin | cos | tan | arcsin | arccos | arctan | sinh | cosh | tanh | arcsinh | arccosh | arctanh | exp | expm1 | exp2 | log | log10 | log2 | log1p | sqrt | cbrt | square | reciprocal | rint | floor | ceil | trunc | absolute | negative | sign | sinc | normalize

Used by

No stock template or group uses this node.