Hi,
My requirement is to set some token based on the output of search query. my search query return one row and I want to use output of one field as condition.
<search>
<query>base search | table ID, Host, Log_or_Live </query>
<done>
<condition match="$result.Log_or_Live$ == log">
set some token
</condition>
<condition match="$result.Log_or_Live$ == live">
set some token
</condition>
<done>
</search>
Thanks
What you are trying to do should work, but there are some syntax issues you should address.
Try this where you use single quotes instead of the dollar signs around Log_or_Live
and you use the html double quote entity "
around the matching string values.
<search>
<query>base search | table ID, Host, Log_or_Live </query>
<done>
<condition match="'result.Log_or_Live' == "log"">
set some token
</condition>
<condition match="'result.Log_or_Live' == "live"">
set some token
</condition>
<done>
</search>
Hi
Can you please try this?
<search>
<query>base search | table ID, Host, Log_or_Live </query>
<done>
<condition match="match('result.Log_or_Live',"log")">
set some token
</condition>
<condition match="match('result.Log_or_Live',"live")">
set some token
</condition>
<done>
</search>
Thanks
This is working as well. 🙂
What you are trying to do should work, but there are some syntax issues you should address.
Try this where you use single quotes instead of the dollar signs around Log_or_Live
and you use the html double quote entity "
around the matching string values.
<search>
<query>base search | table ID, Host, Log_or_Live </query>
<done>
<condition match="'result.Log_or_Live' == "log"">
set some token
</condition>
<condition match="'result.Log_or_Live' == "live"">
set some token
</condition>
<done>
</search>