BUILT-IN MATHEMATICA SYMBOL

$Canceled

$Canceled
is a symbol returned when notebook input is canceled, for example from a dialog box.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Display a dialog window with a cancel button:

When the button is clicked, the value $Canceled is returned as the value of the DialogInput:

In[2]:=
Click for copyable input
Out[2]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »