Morrowind Mod:XStringCompare

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function added by MWSE.

xStringCompare compares the two strings based on alphabetical order and returns 0 if they are equal, a negative number if the first string would appear first, and a postive number if the second string would appear first.

Syntax[edit]

order (long): xStringCompare s1 (string) s2 (string)

Example[edit]

long str
long result

setx str to xStringBuild "hello"
setx result to xStringcompare "hello" str

If ( result == 0 )
        messagebox "strings are the same"
else
        messagebox "strings are different"
endif

See Also[edit]

xPCCellID
xRefID
xMyCellID
xGetName
xSetName
xGetBaseID
xStringLength
xStringParse
xStringBuild
xStringMatch
xLogMessage
xMessageFix