Lets say I have the following hash (see below).  I test for its existence in a 
var the app returns by doing this:

IF order_ids.${somevar.blah}

So if I know it exists, I want to then show the actual order number, NOT "1".

I've tried:
order_ids.${somevar.blah}.key
order_ids.${somevar.blah}.keys
order_ids.${somevar.blah}.name
order_ids.${somevar.blah}.value
order_ids.${somevar.blah}

and I get either nothing or "1". If I was testing on, lets say, 2080058, how 
would I get that value WITHOUT having to reiterate thru the hash (no 
reiterations).

  

   order_ids = {
                    '0311314' => '1',
                    '2080058' => '1',
                    '18084240' => '1',
                    '20079507' => '1',
                    '010496709' => '1',
                    '188043007' => '1',
                    '200780550' => '1',
                    '10140403' => '1',
                    '278600020' => '1',
 }

***********

thanks you very much



      
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to