<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2># I have a Z-Class called animals with a multiple
selection for animal_catagories</FONT></DIV>
<DIV><FONT face=Arial size=2># I call in each member of the
Z-class:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><dtml-with AnimalDirectory><BR>
<dtml-in expr="objectValues()"><BR> <dtml-if "meta_type=='
Animal"><BR></FONT></DIV>
<DIV><FONT face=Arial size=2># For testing:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><dtml-var id> has <dtml-var
animal_catagories></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># Which gives me "Horse is
['hooved','brown','horsey'] as these are the values that I have given to the
horse instance</FONT></DIV>
<DIV><FONT face=Arial size=2># I then have:</FONT></DIV><FONT face=Arial size=2>
<DIV><BR> <dtml-if
expr="REQUEST['hooved'] ==
_['animal_categories'][0]"><BR>
<dtml-var id> is a <dtml-var
hooved> animal<BR>
</dtml-if><BR></FONT> </DIV>
<DIV><FONT face=Arial size=2># Which gives me Horse is a hooved animal.
Which is great!</FONT></DIV>
<DIV><FONT face=Arial size=2># Except this is only checking for the first value.
If hooved were the second value chosen in the multiple select list, then this
would not show. This is obvious because of the [0]</FONT></DIV>
<DIV><FONT face=Arial size=2># What I am trying to do is to compare hooved with
each of the animal categories to see if it has been chosen. If I use a
<dtml-in animal_catagories> with or without ''s, then it tells me
that I can't call in a string. </FONT></DIV>
<DIV><FONT face=Arial size=2># Could anyone please help me, or point me in the
right direction? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>Ben</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>