1 | If input was zero. |
0 | If input was one. |
TargetVariable | What to flip. Can be either a value or @VarName (will upvar and read/write). |
Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See About Using @ for details.
% Flip 0
1
% Flip 1
0
% set MyVar 0
0
% Flip @MyVar
1
% puts $MyVar
1