Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / Evaluation Control  /
ReleaseHold

  • ReleaseHold[ expr ] removes Hold, HoldForm, HoldPattern and HoldComplete in expr.
  • Example: ReleaseHold[ 2, Hold[1 + 1] ].
  • ReleaseHold removes only one layer of Hold etc.; it does not remove inner occurrences in nested Hold etc. functions.
  • See the Mathematica book: Section 2.5.5.
  • See also: Evaluate.

    Further Examples

    ReleaseHold only removes one layer of Holds.

    In[1]:=

    Out[1]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.