Skip to main content

Equals

This formula allows you to check for equality among all given values.

Returns

bool

JSON Format

{
"type": "equals",
"components": ...
}

RPG Script

This component can be written in RPG Script as:

a == b

Fields

FieldTypeRequiredDescription
componentsStatFormulaComponentThe formula for the values involved in the equality check. Has to compute to a list. Will return true if and only if all the values in the list are equal. Note that 1 (the number 1) and "1" (the string for that same number) will be treated as different since they represent different things.
@type array<integer | decimal | string | bool>