equalsStrict: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (added logical category)
m (Conversion script moved page equalsStrict to EqualsStrict without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:36, 9 February 2023

equalsStrict() Function

This function checks for equality between all of the passed in values. Unlike equals() this function can only be used for string values and is case-sensitive.

Usage

equalsStrict(s1, s2, ...)

Parameters

  • s1+ - String

Example

[h: species = "duck"]
[r: equalsStrict(species, "Duck")]
[r: equalsStrict(species, "duck")]
[r: equalsStrict(species, "Chicken")]

Returns:

0
1
0

See Also