Hello,<br>I am looping through a list of dictionary objects using &lt;dtml-in...<br>and within the dtml-in body I have:<br>&lt;dtml-var "_.getitem('sequence-item')['titled']" missing="none"&gt;<br>Some of the dictionaries in the list don't have 'titled' key so it should replace it with the word "none", but it gives me an error<br><strong>Error Type: KeyError</strong><br>       <strong>Error Value: 'titled'<br></strong> I don't understand.&nbsp; Another option is that I can use &lt;dtml-if "_.getitem('sequence-item').has_key('titled')"&gt; but it doesn't work, says has_key is an unknown attribute.&nbsp; This is the stupidest thing ever! it's a dictionary object!<br>I try to typecast it using the dict(_.getitem('sequence-item')).has_key('titled') it gives me an error saying it can't typecast, but I am 100% sure it's a dictionary object because I can access it easily _.getitem('sequence-item')['titled'] for those that have that key.<br><br>Any idea how I can check if the
 titled key is in the dictionary for the current list item?<br><br>Thanks in advance guys!<br><p>
                <hr size=1><a href="http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com">Yahoo! Messenger with Voice.</a> PC-to-Phone calls for ridiculously low rates.