Skip to main content

Contains

This formula returns true if the specified needle value is contained in the haystack.

Returns

bool

JSON Format

{
"type": "contains",
"haystack": ...,
"needle": ...
}

RPG Script

This component can be written in RPG Script as:

contains(...)

Fields

FieldTypeRequiredDescription
haystackStatFormulaComponentA formula returning an array (list) or string that the needle will be looked in for.
@type array<T> | string
needleStatFormulaComponentA formula returning a value to look for in the haystack. It has to be a string if the haystack returns a string. Otherwise it should be of the sub_value_type of the array returned by haystack.
@type T | string