NAME
Ter — Return either first or second value.
SYNOPSIS
Ter Condition IfTrue IfFalse
DESCRIPTION
Return Value
Second argument if condition is true, third argument otherwise.
Arguments
ConditionScript to evaluate.
IfTrueScript to evaluate and return value of if condition evaluates to true.
IfFalseScript to evaluate and return value of if condition evaluates to false.
More Info
Note that you will most likely want the IfTrue and IfFalse arguments to use return.

For information regarding exceptions / errors, see here.
EXAMPLES
set x 1
set y [Ter {$x == 1} {return -1} {return 1}]
-1
SEE ALSO
if
KEYWORDS
conditional, control