Ok, this worked : <dtml-with bid_records> <dtml-with "_.getitem(_['selection'])"> <dtml-call "REQUEST.set('cur_bidder', bidder)"> </dtml-with> </dtml-with> Thanks for the direction, Jerry! sbb
-----Original Message----- From: Spicklemire, Jerry [mailto:Jerry.Spicklemire@IFLYATA.COM] Sent: Friday, October 13, 2000 2:58 PM To: 'sburch@ordway.org' Cc: 'zope@zope.org' Subject: Variable name use in with statement
Scott Butchill wonders if:
"there is a simpler way to do this."
Not much simpler, but how about:
<dtml-call "REQUEST.set('user_select', ['walkon', 'fullhouse'])"> <dtml-with bid_records> <dtml-in user_select> <dtml-if "_.str(REQUEST.form['selection']) == _['sequence-item']"> <dtml-with "_['sequence-item']"> <dtml-call "REQUEST.set('cur_bidder', bidder)"> </dtml-with> <dtml-elif "_['sequence-index'] == -1> <dtml-with snoopy> <dtml-call "REQUEST.set('cur_bidder', bidder)"> </dtml-with> </dtml-if> </dtml-in> </dtml-with>