pankajpanjwani
Technical User
Hi Experts,
I have a code like
set abc 1
set def 1
set xyz 0
...
...
foreach x { abc def xyz } {
if { <value of variable $x> != 0} {
perform this
} else {
perform this
}
}
In this by <value of variable $x> I mean that I would like to have value 0 or 1, depending upon variable "abc"/"def"/"xyz"
I am unable to make TCL subsitutue the value of variable in the "if" condition.
Do you have any solution for this.
thanks for reading and problem and thinking on problem.
Rgds
Pankaj
I have a code like
set abc 1
set def 1
set xyz 0
...
...
foreach x { abc def xyz } {
if { <value of variable $x> != 0} {
perform this
} else {
perform this
}
}
In this by <value of variable $x> I mean that I would like to have value 0 or 1, depending upon variable "abc"/"def"/"xyz"
I am unable to make TCL subsitutue the value of variable in the "if" condition.
Do you have any solution for this.
thanks for reading and problem and thinking on problem.
Rgds
Pankaj