equalsStrict

From RPTools Wiki
Revision as of 17:07, 14 March 2023 by Taustin (talk | contribs) (Text replacement - "source>" to "syntaxhighlight>")
Jump to navigation Jump to search

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

<source lang="mtmacro" line> equalsStrict(s1, s2, ...) </syntaxhighlight> Parameters

  • s1+ - String

Example

<source lang="mtmacro" line>

[h: species = "duck"] [r: equalsStrict(species, "Duck")] [r: equalsStrict(species, "duck")] [r: equalsStrict(species, "Chicken")] </syntaxhighlight> Returns: <source lang="mtmacro"> 0 1 0

</syntaxhighlight>

See Also