Skip to main content

FindFirst

This formula allows you to fetch the first value in an array (list) that satisfies a condition.

Returns

T

JSON Format

{
"type": "findFirst",
"components": ...,
"filter": ...,
"find_first_value_key": ...
}

RPG Script

This component can be written in RPG Script as:

findFirst(...)

Fields

FieldTypeRequiredDescription
find_first_value_keyStringOptional parameter that lets you provide a key to use in the filter formula to access the array's current value in the iteration. e.g: if you are iterating classes, you might want to assign "$class" to the find_first_value_key, to make your system easier to read. This is also helpful when dealing with nested FindFirst formulas, as it will allow inner FindFirst formulas to access the values of outer filter formulas.