![]() |
Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.
|
NAME ifEqual - Checks if two values are equal to each other. SYNOPSIS ifEqual -value1 [VALUE 1] -value2 [VALUE 2] -then [RESULT IF TRUE] -else [RESULT IF FALSE] -redirect [REDIRECT] EXAMPLES ifEqual -value1 2 -value2 4 -then yay -else nay (returns 'nay' because the two values are not equal) ifEqual -value1 yub -value2 yub -then http://www.yubnub.org/ -redirect true (redirects to www.yubnub.org because the values are equal) DESCRIPTION Compares two values and returns a result depending on if they are equal or not. -value1, -value2, and -then are required parameters. The '-redirect' parameter can be set to True or False. It defaults to False. If set to True and the result of the command begins with "HTTP://" then the the command will attempt to redirect the user to the web site. AUTHOR Allen Ormond This is a simple remix of ifThen, inspired by ifEmpty and ifnotempty. Also, check out its sister command, ifNotEqual.