programming.nbk: Home | Index | Next Page: Tcl: while | Previous Page: Tcl: string operations


 Tcl: switch

switch flags value {
   pattern1 body1
   pattern2 body2
   ...
}

flags may be -glob or -regexp


programming.nbk: Home | Index | Next Page: Tcl: while | Previous Page: Tcl: string operations


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time