hi there, let's say i have something like <a href="#" tal:attributes="href person/homepage"> <span tal:replace="person/name" /> </a> within a tal:repeat in a ZPT. is there a way to test for person/homepage first, and if it does not exist, just omit the <a> tag but publish the <span> tag (effectively printing the name without a link)? right now i am doing it like so: <div tal:condition="person/homepage"> <a href="#" tal:attributes="href person/homepage"> <span tal:replace="person/name" /> </a> </div> <div tal:condition="not:person/homepage"> <span tal:replace="person/name" /> </div> which is ugly at best. also, is there an 'else' construct in TALES? -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck NOTE: The pgp.net keyservers and their mirrors are broken! Get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc "non sposarti. trova una donna che odi e comprale una casa."