<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set multiple tokens using &amp;quot;condition match&amp;quot;? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339968#M22075</link>
    <description>&lt;P&gt;To set tokens, I have several "condition match" in a search but, if more than one condition is matched, only the first one seems to work.&lt;BR /&gt;To simplify my use case:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal | stats count by host | table host, count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="len($result.host$)!=0"&amp;gt;
              &amp;lt;set token="showtab1"&amp;gt;t1&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="len($result.count$)!=0"&amp;gt;
              &amp;lt;set token="showtab2"&amp;gt;t2&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I expect is that both tokens will be set (both result.host and result.count exist and have a value).&lt;BR /&gt;However, only "showtab1" is set.&lt;/P&gt;
&lt;P&gt;To my surprise, if I swap the conditions order:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        [...]
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="len($result.count$)!=0"&amp;gt;
              &amp;lt;set token="showtab2"&amp;gt;t2&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="len($result.host$)!=0"&amp;gt;
              &amp;lt;set token="showtab1"&amp;gt;t1&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        [...]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, "showtab2" is set (and "showtab1" is unset...)&lt;/P&gt;
&lt;P&gt;What I'm missing here?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 21:55:31 GMT</pubDate>
    <dc:creator>javierjmg</dc:creator>
    <dc:date>2022-02-16T21:55:31Z</dc:date>
    <item>
      <title>How to set multiple tokens using "condition match"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339968#M22075</link>
      <description>&lt;P&gt;To set tokens, I have several "condition match" in a search but, if more than one condition is matched, only the first one seems to work.&lt;BR /&gt;To simplify my use case:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal | stats count by host | table host, count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="len($result.host$)!=0"&amp;gt;
              &amp;lt;set token="showtab1"&amp;gt;t1&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="len($result.count$)!=0"&amp;gt;
              &amp;lt;set token="showtab2"&amp;gt;t2&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I expect is that both tokens will be set (both result.host and result.count exist and have a value).&lt;BR /&gt;However, only "showtab1" is set.&lt;/P&gt;
&lt;P&gt;To my surprise, if I swap the conditions order:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        [...]
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="len($result.count$)!=0"&amp;gt;
              &amp;lt;set token="showtab2"&amp;gt;t2&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="len($result.host$)!=0"&amp;gt;
              &amp;lt;set token="showtab1"&amp;gt;t1&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        [...]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, "showtab2" is set (and "showtab1" is unset...)&lt;/P&gt;
&lt;P&gt;What I'm missing here?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 21:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339968#M22075</guid>
      <dc:creator>javierjmg</dc:creator>
      <dc:date>2022-02-16T21:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339969#M22076</link>
      <description>&lt;P&gt;The issue is only one &lt;CODE&gt;condition&lt;/CODE&gt; is ever executed.  They are like &lt;CODE&gt;if&lt;/CODE&gt;, &lt;CODE&gt;else-if&lt;/CODE&gt;, &lt;CODE&gt;else&lt;/CODE&gt; structures.&lt;/P&gt;

&lt;P&gt;So you need to combine the two outcomes in one condition and then separate them out.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;condition match="len($result.host$)!=0 AND len($result.count$)!=0"&amp;gt;
        &amp;lt;set token="showtab1"&amp;gt;t1&amp;lt;/set&amp;gt;
        &amp;lt;set token="showtab2"&amp;gt;t2&amp;lt;/set&amp;gt;
    &amp;lt;condition match="len($result.host$)!=0"&amp;gt;
        &amp;lt;set token="showtab1"&amp;gt;t1&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition match="len($result.count$)!=0"&amp;gt;
        &amp;lt;set token="showtab2"&amp;gt;t2&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2017 17:15:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339969#M22076</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-09-15T17:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339970#M22077</link>
      <description>&lt;P&gt;It works. Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 17:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339970#M22077</guid>
      <dc:creator>javierjmg</dc:creator>
      <dc:date>2017-09-15T17:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339971#M22078</link>
      <description>&lt;P&gt;I am facing same kind of problem, please correct my code where I am doing wrong -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Select Category&amp;lt;/label&amp;gt;
  &amp;lt;choice value="capability"&amp;gt;CAPABILITY&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="lob"&amp;gt;LOB&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="service"&amp;gt;SERVICE&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="client"&amp;gt;CLIENT&amp;lt;/choice&amp;gt;
  &amp;lt;change&amp;gt;


  &amp;lt;set token="show_capability"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_capability"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;/condition&amp;gt;

  &amp;lt;condition value="lob"&amp;gt;
  &amp;lt;set token="show_lobName"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;condition&amp;gt;
  &amp;lt;unset token="show_lobName"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;/condition&amp;gt;
  &amp;lt;/change&amp;gt;





  &amp;lt;label&amp;gt;Select capability name:&amp;lt;/label&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;|inputlookup lookup_STAACapability.csv | dedup Capability | eval Capability1=upper(Capability)| sort Capability1  |  table Capability&amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;Capability&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;Capability&amp;lt;/fieldForValue&amp;gt;
&amp;lt;/input&amp;gt;


  &amp;lt;label&amp;gt;Select LOB Name:&amp;lt;/label&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;|inputlookup lookup_STAALob.csv| dedup LOBName| eval LOBName1=upper(ClientName)|sort LOBName1 | table LOBName&amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;LOBName&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;LOBName&amp;lt;/fieldForValue&amp;gt;
&amp;lt;/input&amp;gt;
 &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 11:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339971#M22078</guid>
      <dc:creator>sayanidasgupta</dc:creator>
      <dc:date>2018-06-12T11:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339972#M22079</link>
      <description>&lt;P&gt;It doesn't allow me to open two conditions and only close one. (on line 6.)&lt;BR /&gt;
How did you get it to run when the open/close tags are not complete?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 12:12:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339972#M22079</guid>
      <dc:creator>DavidCH12345</dc:creator>
      <dc:date>2018-11-20T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339973#M22080</link>
      <description>&lt;P&gt;I have a better answer than multiplexing logic: multiple &lt;CODE&gt;&amp;lt;change&amp;gt;&lt;/CODE&gt; sections, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;change&amp;gt;
   &amp;lt;condition match="len($result.host$)!=0"&amp;gt;
      &amp;lt;set token="showtab1"&amp;gt;t1&amp;lt;/set&amp;gt;
   &amp;lt;/condition&amp;gt;
   &amp;lt;condition&amp;gt;
      &amp;lt;unset token="showtab1"&amp;gt;&amp;lt;/unset&amp;gt;
   &amp;lt;/condition&amp;gt;
&amp;lt;/change&amp;gt;
&amp;lt;change&amp;gt;
   &amp;lt;condition match="len($result.count$)!=0"&amp;gt;
      &amp;lt;set token="showtab2"&amp;gt;t2&amp;lt;/set&amp;gt;
   &amp;lt;/condition&amp;gt;
   &amp;lt;condition&amp;gt;
      &amp;lt;unset token="showtab2"&amp;gt;&amp;lt;/unset&amp;gt;
   &amp;lt;/condition&amp;gt;
&amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the case of 2x2 like this either solution is about the same.  However when you scale to a much larger matrix of fields and values, this solution is waaaaaaaaaaaaaaaaay better.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:53:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339973#M22080</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-01-14T16:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339974#M22081</link>
      <description>&lt;P&gt;According to the form documentation you can only have one change block.  &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/PanelreferenceforSimplifiedXML#change_.28form_input.29"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/PanelreferenceforSimplifiedXML#change_.28form_input.29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 17:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339974#M22081</guid>
      <dc:creator>waleeper</dc:creator>
      <dc:date>2020-01-30T17:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339975#M22082</link>
      <description>&lt;P&gt;Please post the text, too.  I read the link and other than the use of the definite article "the", which only implies a constraint, I do not see a limitation listed. In any case, it does work and I often use it.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 17:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/339975#M22082</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-01-30T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/585436#M47984</link>
      <description>&lt;P&gt;This answer solves an issue I am having.&amp;nbsp; I like the way this is structured.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;, if I'm reading this correctly (and a test verifies this), as soon as a condition fires, all other conditions are ignored.&amp;nbsp; There is no nesting her, but an elegant trigger condition, or an "else" condition that fires to do other business logic (show/hide here).&lt;/P&gt;&lt;P&gt;Very nice.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 21:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/585436#M47984</guid>
      <dc:creator>akew</dc:creator>
      <dc:date>2022-02-16T21:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/613164#M50287</link>
      <description>&lt;P&gt;How do you set multiple tokens using multiple conditions when the search results are done?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 02:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/613164#M50287</guid>
      <dc:creator>jagadeeshm</dc:creator>
      <dc:date>2022-09-15T02:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/639502#M52294</link>
      <description>&lt;P&gt;If this would (still) be the case, then this dashboard should be able to set one of the 2 tokens based upon the clicked checkbox:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form theme="dark" script="simple_xml_examples:showtokens.js"&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;field1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="option1"&amp;gt;option1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="option2"&amp;gt;option2&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="isnotnull(mvfind($form.field1$,&amp;amp;quot;option1&amp;amp;quot;))"&amp;gt;
          &amp;lt;set token="option1.txt"&amp;gt;option1&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;unset token="option1.txt"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="isnotnull(mvfind($form.field1$,&amp;amp;quot;option2&amp;amp;quot;))"&amp;gt;
          &amp;lt;set token="option2.txt"&amp;gt;option2&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;unset token="option2.txt"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;$option1.txt$&amp;lt;/p&amp;gt;
        &amp;lt;p&amp;gt;$option2.txt$&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;But, only the second change block gets hit. Or am I doing something wrong here?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 13:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/639502#M52294</guid>
      <dc:creator>stratenh</dc:creator>
      <dc:date>2023-04-11T13:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set multiple tokens using "condition match"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/639517#M52295</link>
      <description>&lt;P&gt;This seems to work (but still feels like a work around):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form theme="dark" script="simple_xml_examples:showtokens.js"&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="field1"&amp;gt;off&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="field"&amp;gt;
      &amp;lt;label&amp;gt;field&amp;lt;/label&amp;gt;
      &amp;lt;choice value="option1"&amp;gt;option1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="option2"&amp;gt;option2&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="field1"&amp;gt;case(isnotnull(mvfind($form.field$,&amp;amp;quot;option1&amp;amp;quot;)),"option1")&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="field2"&amp;gt;case(isnotnull(mvfind($form.field$,&amp;amp;quot;option2&amp;amp;quot;)),"option2")&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
      | makeresults
      | eval option1=$field1$
    &amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;condition match="isnull($field1$)"&amp;gt;
        &amp;lt;unset token="option1.txt"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="option1.txt"&amp;gt;$field1$&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
      | makeresults
      | eval option2=$field2$
    &amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;condition match="isnull($field2$)"&amp;gt;
        &amp;lt;unset token="option2.txt"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="option2.txt"&amp;gt;$field2$&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;$option1.txt$&amp;lt;/p&amp;gt;
        &amp;lt;p&amp;gt;$option2.txt$&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Does someone have a better solution?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 15:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-multiple-tokens-using-quot-condition-match-quot/m-p/639517#M52295</guid>
      <dc:creator>stratenh</dc:creator>
      <dc:date>2023-04-11T15:01:48Z</dc:date>
    </item>
  </channel>
</rss>

