Index Of First Match (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語 • ‎한국어
Index Of First Match
[[File:| |noframe|256px]]
Inputs
  Dummy Match
  Dummy Values.[0]
  Dummy Values.[1]
  Dummy Values.[2]
Outputs
  Int Index
  Bool FoundMatch

The Index Of First Match node outputs the integer Index corresponding to the first Values.[x] input which exactly matches the Match input.

Usage

When spawned the inputs to this node have the unset dummy datatype. The node will automatically recast when a valid datatype is wired to one of the inputs. This node checks for matches in ascending order of Values.[x] inputs, i.e. top to bottom according to the way inputs are shows on the node graphic. For example, assume the Match input has integer value 100, Values.[0] is 100, Values.[1] is 200, and Values.[2] is 100. Here the Index output would be 0 since Values.[0] is the first match to the input even though Values.[2] also matches the input.

The FoundMatch output provides a Boolean value reflecting whether one of the Values.[x] inputs matches the Match input or not. If no match is found the FoundMatch output is False and the Index output is -1.

Examples

Node Menu

Utility
Back Empty GUID Index Of First Match Parse GUID Random GUID