![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveHow to dynamically pass operators to if?
From: Andrew Falanga <not_real@hp.com>
Date: Wed Mar 08 2006 - 16:54:56 CET
Hi,
I have a situation where I'm trying to pass the comparison operator
proc myproc { args } {
if { $val1 $oper $val2 } {
when this executes, I get this error.
syntax error in expression " $val1 $oper $val2 ": extra tokens at end of
So, how would I make this happen?
---------------------------------------------
|