On 5/3/07, Maria McDowell <[EMAIL PROTECTED]> wrote:
> Folks,
>
> Is it possible to do something like this:
> <div ex:if-exists=".instructor" OR ex:if-exists=".coursenumber">Then
> create this div</div>?

It is, but not prettily; you could copy and paste a bit, but it will
give you duplicates if both exist:

<div ex:if-exists=".instructor">Then create this div</div>
<div ex:if-exists=".coursenumber">Then create this div</div>

There might (should) be better ways too, I hope. :-) David, would it
be feasible to concoct something like an ex:if="exists( .instructor )
|| exists( .coursenumber )" or perhaps ex:if="or(exists( .instructor
), exists( .coursenumber ))" to do this kind of thing? I don't think
straight at the moment, so I can't quite tell myself. (These two
suggestions don't work yet, but likely could be made to.)

-- 
 / Johan Sundström, http://ecmanaut.blogspot.com/

> In short, I know I can make an individual field appear IF the field
> exists in the item.  But what if I want to make a div appear only if any
> ONE of three or four fields exist?  Is this possible?  What is the
> syntax if it is (remember: non-developer asking this question).
>
> Thanks,
> Maria

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to