- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
//Defined getIfExists
var query = xtk.queryDef.create(
<queryDef schema="nms:recipient" operation="getIfExists">
<select>
<node expr="@email"/>
<node expr="@id"/>
</select>
<where>
<condition expr={"@email='"+ctx.recipient.@email+"'"}/>
<condition expr={"@sourceType='Media'"}/>
</where>
</queryDef>
)
var res = query.ExecuteQuery()
//Run the query
var res = query.ExecuteQuery()
//Called if statement worked
if(res.@email.length()>0){
nms.delivery.QueueNotification