Table 53 ascii character codes, Table 54 if/endif comparison symbols, Makestring – HP StorageWorks XP Remote Web Console Software User Manual
Page 188: 53 ascii character codes, 54 if/endif comparison symbols
188 TrueCopy for the XP128/XP1024/XP10000/XP12000
statement. The execution statement cannot be defined on the same line as the If statement. The If statement
must contain one conditional decision statement within parentheses. The string values must be compared
as ASCII character codes (see
). The format for an If/EndIf statement is:
If expression one compared with expression two (see
for comparison expressions)
macro statement, either internal or functional
EndIf
For example, to start a TC390 pair only if the pair was created successfully (result value of CreateHrcPair
command is not 0), use the following If/EndIf command:
If (_Result!=0)
StartHrcPair
EndIf
MakeString
Use the MakeString command to edit a string and/or convert numeric values to string characters. When
using the MakeString statement several conditions must be met. For each format control string statement
there must be an $Item statement. The format control string of expression 1 must be enclosed in quotation
marks (“”). If you set a value exceeding the maximum length of a string, the extraneous portion of the value
will be not set. The following table defines the two expression statement in the MakeString command. The
Table 53
ASCII character codes
Character
Code
0
0x30
1
0x31
9
0x39
A
0x41
Z
0x5a
a
0x61
z
0x7a
Table 54
If/EndIf comparison symbols
Symbol
Meaning
= =
Expression 1 is equal to Expression 2.
<
Expression 1 is less than Expression 2.
<=
Expression 1 is less than or equal to Expression 2.
>
Expression 1 is greater than Expression 2.
>=
Expression 1 is greater than or equal to Expression 2.
!=
Expression 1 is not equal to Expression 2.