SO that when executing a script, a command line switch would cause script
lines that are "excluded" to be ignored, without slowing down the script.
I would guess 'probably not' because the script isn't compiled....but it
would be nice to somehow easily simulate this.....
any suggestions....without having to do some kind of manual comparing that
would slow down the script ?
-MG
Try:
if $switch_present then {
do first thing
} else {
do second thing
}
Note that you can have procedure declarations in the conditional to define a
procedure one way or the other.
==========================================================================
* Gerald W. Lester ! Voice: (504)-889-2784 *
* Computerized Processes Unlimited ! FAX: (504)-889-2799 *
* 4200 S. I-10 Service Road, Suite #205 ! E-Mail: g...@cpu.com *
* Metairie, LA 70001 ! Hours: 09:00-17:00 CDT *
==========================================================================
I guess, if you are willing to, you can always put #ifdef's into your
TCL source code and have CPP tp "compile" it ....
Ioi.