Boolean_Not_Equal

Compare the two parameters and return TRUE if they do not have the same value. Use Boolean variables as the parameters instead of actions to make the script easier to read and understand.

Parameters

Test1

A Boolean variable, constant, or action.

Test2

A Boolean variable, constant, or action.

Format

Boolean_Not_Equal (Test1, Test2)

Return Value

Returns a Boolean. FALSE if both Test1 and Test2 are TRUE, or both Test1 and Test2 are FALSE. Returns TRUE otherwise.

Example

Script(Boolean_Not_Equal_Test)
Boolean(bResultAll)
Boolean(bResult1)
Boolean(bResult2)
Activate(From_Menu)
bResult1 = Ask_Yes_No("Hit Yes in one message box", "Message 1", FALSE)
bResult2 = Ask_Yes_No("Hit No if you hit Yes in the last message box", "Message 2", FALSE)
bResultAll = Boolean_Not_Equal(bResult1, bResult2)
If(bResultAll)
Message("The responses were different", 5)
Else
Message("Both responses were the same", 5)
End_If
Return

See Also

Boolean_Equal, Boolean_Set, Boolean_Not, Boolean_And, Boolean_Or, Ask_OK_Cancel, Ask_Yes_No

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

© 2016 Wavelink Corporation. All Rights Reserved.