Hi bong - escaping the colon didnt work - The following did work though
set range [expr ($i==0) ? \"$range_a\" : ($i==1) ? \"$range_b\" : \"$range_c\"]
Hi all,
I have a newbie question :) I am trying to assign a string to a variable in a conditional expression as follows
set range_a "5:4"
set range_b "3:2"
set range_c "1:0"
set range [expr ($i==0) ? $range_a : ($i==1) ? $range_b : $range_c]
I get the following error
unexpected operator ":"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.