XML Script logo
Function _OP_EQUALS_EQUALS
Name

_OP_EQUALS_EQUALS

Returns

number

Parameter count

2

Parameter 1

operand1, a string

Parameter 2

operand2, a string

Description

Returns 1 (true) if 'operand1' is the same as 'operand2' and 0 (false) otherwise.
The type of comparison used depends on the values of 'operand1' and 'operand2'. If both operands look numeric (they contain only chars 0-9 '-' or '.' after leading and trailing white spaces have been removed) then numeric equality is checked otherwise bytewise string equality is checked e.g.
# 1 == 1.00 # returns 1
# 1.43 == 1.00 # returns 0
# "1.000" == " 1.0000000 " # returns 1
# "1.000" == "1.000 a" # returns 0
# "the quick brown fox 123" == "the quick brown fox 123" # returns 1.
# "The quick brown fox 123" == "the quick brown fox 123" # returns 0.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited