Qstrcmp: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
Created page with "'''qstrcmp''' <quote1> <quote2> <var> Compare two quotes. <var> returns zero if they are identical, -1 if the first quote comes first in alphabetical order, 1 if it comes lat..."
 
Fox (talk | contribs)
No edit summary
 
Line 1: Line 1:
'''qstrcmp''' <quote1> <quote2> <var>
'''qstrcmp''' <quote1> <quote2> <return>


Compare two quotes. <var> returns zero if they are identical, -1 if the first quote comes first in alphabetical order, 1 if it comes later.
Compare two quotes. <return> returns zero if they are identical, -1 if the first quote comes first in alphabetical order, 1 if it comes later.


Note that the lexicographical order is rudimentary, for example "Player 2" is considered greater than "Player 10".
Note that the lexicographical order is rudimentary, for example "Player 2" is considered greater than "Player 10".
[[Category:EDuke32 specific commands]]
[[Category:String manipulation]]

Latest revision as of 09:04, 20 February 2020

qstrcmp <quote1> <quote2> <return>

Compare two quotes. <return> returns zero if they are identical, -1 if the first quote comes first in alphabetical order, 1 if it comes later.

Note that the lexicographical order is rudimentary, for example "Player 2" is considered greater than "Player 10".