Command: switchdefault

NEST HelpDesk Command Index NEST Quick Reference

Name:
 switchdefault - finish a case ... switchdefault structure
Synopsis:
 mark proc1...procn procdefault switchdefault -> -
Description:
   Like switch, switchdefault executes any of proc1...procn.
   If an execution it meets an exit command, no further procs are executed.
   If n=0, e.g. no procedure other than procdefault is found, procdefault
   will be executed. Thus, procdefault will be skipped if any other proc
   exists.
Parameters:
   proc1...procn: executable procedure tokens.
   procdefault  : execulable procedure called if no other proc is present.
Examples:

   mark
     false {1 == exit} case
     false {2 == exit} case
     true  {3 == exit} case
     false {4 == exit} case
     {(default) ==}
   switchdefault
   -->  3

   mark
     false {1 == exit} case
     false {2 == exit} case
     false {3 == exit} case
     false {4 == exit} case
     {(default) ==}
   switchdefault
   --> default

Author:
 Hehl
FirstVersion:
 April 16, 1999

SeeAlso:case switch exit mark
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/sli/slicontrol.h

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative