Checks if a string contains only lowercase characters.
StringIsLower ( "string" )
string | The string to check |
Success: | 1. |
Failure: | 0 if string contains non-lowercase characters. |
As in other StringIs...() the check is stop if a Chr(0) is encountered inside the string.
Internally the C function is used to speed up the processing.
Note that digits/punctuation/whitespace will cause StringIsLower() to return 0.
StringIsAlNum, StringIsAlpha, StringIsASCII, StringIsDigit, StringIsSpace, StringIsUpper, StringIsXDigit, StringLower, StringUpper
#include <MsgBoxConstants.au3>
Local $sString = "lowercase" ; Check whether this string contains only lowercase characters.
If StringIsLower($sString) Then
MsgBox($MB_SYSTEMMODAL, "", "The variable is a lowercase string")
Else
MsgBox($MB_SYSTEMMODAL, "", "The variable is not a lowercase string")
EndIf