OpenersNotesSection(Spacer1)Details

This message is generated when a level specification does not have the expected form.

A level specification is normally expected to be either an integer or a list of one or two integers.

Level specifications are used by (RefLink[Apply, paclet:ref/Apply]), (RefLink[Cases, paclet:ref/Cases]), (RefLink[Count, paclet:ref/Count]), (RefLink[DeleteCases, paclet:ref/DeleteCases]), (RefLink[FreeQ, paclet:ref/FreeQ]), (RefLink[Level, paclet:ref/Level]), (RefLink[Map, paclet:ref/Map]), (RefLink[MapIndexed, paclet:ref/MapIndexed]), (RefLink[MemberQ, paclet:ref/MemberQ]), (RefLink[Position, paclet:ref/Position]), (RefLink[Scan, paclet:ref/Scan]), (RefLink[Select, paclet:ref/Select]), and other functions.

Level specifications indicate the depth within an expression that should be inspected or modified.

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[General::level].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

The form of the level specification in (RefLink[MemberQ, paclet:ref/MemberQ]) is incorrect:

MemberQ[{28,11,15,{2, 7, 13},11},7,{0,1,2}]

This shows a correct way to specify levels 0, 1, and 2 in an expression:

MemberQ[{28,11,15,{2, 7, 13},11},7,{0,2}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[General, paclet:ref/General])}})}})