equalsStrict: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page EqualsStrict to equalsStrict: Converting page titles to lowercase) |
m (Text replacement - "source>" to "syntaxhighlight>") |
||
Line 9: | Line 9: | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
equalsStrict(s1, s2, ...) | equalsStrict(s1, s2, ...) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|s1+|String}} | {{param|s1+|String}} | ||
Line 19: | Line 19: | ||
[r: equalsStrict(species, "duck")] | [r: equalsStrict(species, "duck")] | ||
[r: equalsStrict(species, "Chicken")] | [r: equalsStrict(species, "Chicken")] | ||
</ | </syntaxhighlight> | ||
'''Returns:''' | '''Returns:''' | ||
<source lang="mtmacro"> | <source lang="mtmacro"> | ||
Line 25: | Line 25: | ||
1 | 1 | ||
0 | 0 | ||
</ | </syntaxhighlight> | ||
|also= | |also= |
Revision as of 17:07, 14 March 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
<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>