Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hariceg

    assigning strings in conditional expressions

    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\"]
  2. hariceg

    assigning strings in conditional expressions

    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 ":"...

Part and Inventory Search

Back
Top