rtex-engine/docs/instructions/comparators/equals.md

35 lines
708 B
Markdown
Raw Permalink Normal View History

# eq
2022-12-29 14:17:56 -05:00
Returns true if the two values are equal, false otherwise.
## Parameters
* a (`integer`, `float`, `double`, `string`, `boolean`) - The first value to compare.
* b (`integer`, `float`, `double`, `string`, `boolean`) - The second value to compare.
2022-12-29 14:17:56 -05:00
## Return
(`boolean`) - True if the two values are equal, false otherwise.
## Exceptions
* `EvaluationException` - If there was an error while evaluating one or more parameters.
* `TypeException` - If one or more parameters are not of the expected type.
## Instruction Example
```json
{
"type": "eq",
2022-12-29 14:17:56 -05:00
"_": {
"a": "foo",
"b": "foo"
}
}
```
### Last Updated
Monday, December 30th, 2022.
2022-12-29 14:17:56 -05:00
Written by [Netkas](https://git.n64.cc/netkas)