How to properly combine evaulation and variable?



set a [string index $fr 73]
if {$a > 0} {set a 1} else {set a " "}


I have tried:

if {"$a" [string index $a 73] > 0} {set a 1} else {set a " "}

but I get a expression error.



--
Best Regards, Keith
(o_
//\
V_/_



.



Relevant Pages

  • RE: Calculating a rate for elapsed time?
    ... Regards, ... Peo Sjoblom ... "Keith" wrote: ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: Are you kidding ?
    ... Most disappointing turn of events. ... Regards, ... Keith Blows ... Prev by Date: ...
    (borland.public.delphi.thirdpartytools.general)
  • Taper Roller head races
    ... Triumph T120? ... Regards, ... Keith ... Prev by Date: ...
    (uk.rec.motorcycles.classic)
  • Caravanning in Sicily
    ... SWMBO wants to extend this year's trip (Pompeii) to Sicily. ... Regards, ... Keith ... Prev by Date: ...
    (uk.rec.caravanning)
  • Re: HELP PLEASE
    ... Regards ... Sandy ... > Keith wrote in message ... ... Prev by Date: ...
    (microsoft.public.excel.misc)