conditional execution depending on a class, virtual class or role |
|
| see if, zena 1.0 | |
This is a meta tag because it matches all methods starting with a capital letter.
The role of this tag is to filter execution depending on the runtime type. For example the following code will only execute on Images:
<r:Image?>I am an image!</r:Image?>
Virtual class
You can also filter by virtual classes:
<div do='Post?'>posted in <r:parent do='link'/></div>
Role
And finally, you can filter by role.
Reminder: a node “has a role” if it has non-blank properties defined in the given role.
<r:Task?> this node has the "Task" role. It is assigned to <b do='assigned'/> </r:Task?>