string compare
Compare text
Input:
text1: - String first text
text2: - String second text
caseSensitive: - Bool match case
natural: - Bool natural order comparison
reverseCase: - Bool capital letters return greater result
Output:
Integer
 0 - texts are identical
 1 - first one is greater than the second
-1 - first one is lesser than the second


Example:
_value = call loadFile Format ["\:string compare text1:%1text2:%2", "Hello", "World!"]


Description:
Compares two strings with each other according to the lexicographical order. Alternatively use natural: to compare in a natural order. Option reverseCase: use in combination with caseSensitive:.
Purpose:
For sorting strings alphabetically.


Version:
1.1
Demo:
Download
Source:
View


Topics:
What is Fwatch?
What's new?
Download & Startup

Presence Check
Using Commands
Input Commands Info
Animation Codes
Function & Script Library
Recommended Practices

Extras
Changelog
Source
Credits

Discuss Scripting
Post Request

Fwatch 1.16 Beta
Mod Manager