Switch { exposedField MFNode choice [] exposedField SFInt32 whichChoice -1 }Explanation :
The Switch grouping node traverses zero or one of the nodes specified in the choice field.
The whichChoice field specifies the index of the child to traverse with the first child having index 0. If whichChoice is less than zero or greater than the number of nodes in the choice field, nothing is chosen.
All nodes under a Switch continue to receive and send events regardless of the value of whichChoice. For example, if an active TimeSensor is contained within an inactive choice of an Switch, the TimeSensor sends events regardless of the Switch's state.