Number_Equal

Compare two numbers and determine whether they are equal.

Parameters

Test1

Gets compared to Test2.

Test2

Gets compared to Test1.

Format

Number_Equal (Test1, Test2)

Return Value

Returns a Boolean. TRUE if Test1 is the same as Test2, FALSE otherwise.

Example

Script(Number_Equal_Test)
Number(nEntered1)
Number(nEntered2)
Boolean(bEqual)
Activate(From_Menu)
nEntered1 = Ask_Number("Type the first number", "Number_Equal_Test", 0, 999, 0)
nEntered2 = Ask_Number("Type the second number", "Number_Equal_Test", 0, 999, 0)
bEqual = Number_Equal(nEntered1, nEntered2)
If(bEqual)
Message("First number is equal to the second number", 5)
Else
Message("First number is not equal to the second number", 5)
End_If
Return

See Also

Number_Less_Than, Number_Less_Than_Or_Equal, Number_Greater_Than_Or_Equal, Number_Greater_Than, Number_Not_Equal, Number_Set, Ask_Number, String_To_Number_Decimal

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

© 2016 Wavelink Corporation. All Rights Reserved.