Johan Sundström wrote:
> 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.)
>
>   
I think this is already doable in 2.0 using the "union" function:
    ex:if-exists="union(.instructor, .coursenumber)"

ex:if is also being supported in 2.0.

The "exists" function will be useful to introduce--it's not there yet.

David

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

Reply via email to