Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


8.3.21 IsLower (check whether a string is lowercase)

Purpose

Checks whether a string is lowercase characters, and returns True or False.

Syntax
IsLower (String)
Argument
String

Specify the string itself or a variable that stores this value.

False is returned if you specify a zero-length string ("").

Description

The IsLower command checks whether the specified string contains all lowercase characters, and returns True or False as the command execution result.

Example 1
' Check whether the value of global variable Level is
' "a" or "A".
Dim buff
buff = GetGV ("Level")
If buff = "A" Then
  If IsLower (buff) Then
    MessageBox ("Small A Level.")
  Else
    MessageBox ("Large A Level.")
  End If
End If
Example 2
' Check whether the string stored in local variable buff
' consists of all lowercase characters.
Dim buff
buff =  "script"
If IsLower ( buff ) Then 
  MessageBox ( "All characters are lowercase characters." )
Else
  MessageBox ( "Characters other than lowercase characters exist." )
End If
JP1/Script version

Supported from JP1/Script 06-00.