PartBehavior

PartBehavior

is an option to Query and related functions that specifies how nonexistent parts should be resolved.

Details

  • The following settings can be given:
  • Noneuse ordinary behavior of Part
    Automaticinvoke special rules for invalid i;;j, missing i, etc.

Examples

Basic Examples  (1)

The default option value PartBehavior->Automatic invokes special behavior for operators that would otherwise fail:

In[1]:=
Click for copyable input
Out[1]=

Using PartBehavior->None specifies that the ordinary behavior of Part should be used:

In[2]:=
Click for copyable input
Out[2]=

See Also

MissingBehavior  FailureAction  Query

Introduced in 2014
(10.0)