Block

WMA link


Block[{x, y, ...}, expr]

temporarily removes the definitions of the given variables, evaluates expr, and restores the original definitions afterwards.

Block[{x=$x_0$, y=$y_0$, ...}, expr]

assigns temporary values to the variables during the evaluation of expr.

Values assigned to block variables are evaluated at the beginning of the block.
Keep in mind that the result of Block is evaluated again, so a returned block variable
will get its original value.

If the variable specification is not of the described form, an error message is raised.

Variable names may not appear more than once:

BeginPackage
Contexts