Imagine that you wanted to exclude page numbers for some levels in your TOC; what could you do? There's nothing in the Index and Tables dialog box to help. One option would be to delete the page numbers manually and remember not to update the TOC, but that is hardly a reliable solution. The better way is to use field switches.
Field switches are commands that you add to a field to modify what it does. There are switches available for both the TC and TOC fields.
Switches are added onto the end of a field code within the braces, and they always start with a backslash (\):
{ TOC \n }
The \n switch in this example would remove all the page numbers in the TOC, which you can also do in the dialog box. But if you wanted to remove the page numbers from just levels 2 and 3, you would write:
{ TOC \n 2-3 }
Note The levels to be excluded with this switch must always be represented by a range, so if you wanted to remove page numbers just for level 3, you'd use "3-3" in the switch.
You'll see other switches in action in the practice session. The Quick Reference Card has links to complete lists of TOC and TC switches.