Lookup object (ZeyOS)
XML
<db:lookup var="var" entity="string">
ixml
</db:lookup>
Parents: db:connection
<db:lookup /> looks up a database object and returns it's ID if applicable.
Attributes
Results
| Binding | Type | Predicate |
|---|---|---|
| var | N/A |
Examples
XML
<db:lookup entity="contacts" var="id">
<db:is field="lastname">Gates</db:is>
<db:is field="firstname">Bill</db:is>
</db:lookup>
<if value1="$id" func="=" value2="">
<output>Contact not found!</output>
</if>
<!-- Contact not found! -->