Difference between revisions of "StringCmp"
Jump to navigation
Jump to search
imported>Speedo (New page: {{Beta}} A command for Pluggy. '''Syntax:''' (Position:long) StringCmp StringID1:long StringID2:long ''CaseSensitive:short'' Compares two strings and returns the ...) |
imported>Speedo (add StringToken link) |
||
Line 6: | Line 6: | ||
(Position:long) StringCmp StringID1:long StringID2:long ''CaseSensitive:short'' | (Position:long) StringCmp StringID1:long StringID2:long ''CaseSensitive:short'' | ||
Compares two strings and returns the position of the first different character, or 0 if no difference is found. | Compares two strings and returns the position of the first different character, or 0 if no difference is found. May be used with [[StringToken|StringTokens]]. | ||
*If CaseSensitive is 0 or not specified, the function ignores case differences. | *If CaseSensitive is 0 or not specified, the function ignores case differences. |
Revision as of 12:16, 27 February 2008
Beta Function
This function has not been fully tested yet, and is not ready to be used in a released mod. It may not have the same function in later versions, may require the script to be recompiled, or simply may be removed. Use for testing purposes only until the author of the function says otherwise.
A command for Pluggy.
Syntax:
(Position:long) StringCmp StringID1:long StringID2:long CaseSensitive:short
Compares two strings and returns the position of the first different character, or 0 if no difference is found. May be used with StringTokens.
- If CaseSensitive is 0 or not specified, the function ignores case differences.