mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-18 20:55:09 +00:00
23 lines
No EOL
633 B
Text
23 lines
No EOL
633 B
Text
{{DISPLAYTITLE:_STRCMP}}
|
|
|
|
The '''_STRCMP''' function compares the relationship between two strings, comparing upper or lower case.
|
|
|
|
|
|
{{PageSyntax}}
|
|
::: comparison% = '''_STRCMP('''''string1$, string2$''')'''
|
|
|
|
|
|
{{PageDescription}}
|
|
* Function returns -1 when ''string1$'' is less than ''string2$'', 0 when equal or 1 when ''string1$'' is greater than ''string2$''
|
|
* Upper case letters will be valued less than lower case letters in the [[ASCII]] evaluation.
|
|
* '''Note: The function does not return values over 1 or under -1 like some versions!'''
|
|
|
|
|
|
''See also:''
|
|
* [[_STRICMP]]
|
|
* [[STR$]]
|
|
* [[STRING]]
|
|
* [[ASCII]]
|
|
|
|
|
|
{{PageNavigation}} |