Hi there..
I wrote this code:
1 set db [ns_db gethandle]
2 set sql_account "select accd_stat from table_a"
3 set accd_lists [database_to_tcl_list_list $db $sql_account]
4 set bbb ""
5
6 foreach accd $account_lists {
7 #set status1 "unstart"
8 set status1 [lindex $accd 0]
9 if { $status1 == "unstart" } {
10 set ccc "yess"
11 } else {
12 set ccc "damn"
13 }
14
15 append bbb "$status1 >> $ccc
"
16 }
and they produce this output :
unstart >> damn
question is:
Why the if statement failed although the variable hold the same
content as the specified condition ??? and if I commented line8 and
then uncomment line7, they works .... any ideas???
-Silly me-
Request notifications