<?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 Re: What is the difference between true and not false? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-difference-between-true-and-not-false/m-p/553200#M5907</link>
    <description>&lt;P&gt;If you are asking this for a search command string, then the two statements&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myField = true
myField != false&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;is like saying&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myField = "true"
myField != "false"&lt;/LI-CODE&gt;&lt;P&gt;because Splunk does not have boolean field types, only string and number so clearly the above would not be the same.&lt;/P&gt;&lt;P&gt;In general, Splunk does not have the concept of a field with boolean values, as you can see from this search example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval x=if(true(), true(), false())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 22:31:12 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2021-05-26T22:31:12Z</dc:date>
    <item>
      <title>What is the difference between true and not false?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-difference-between-true-and-not-false/m-p/553193#M5906</link>
      <description>&lt;P&gt;Is querying by myField=true or myField != false the same thing? Is saying myField=true better or more efficient?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 20:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-difference-between-true-and-not-false/m-p/553193#M5906</guid>
      <dc:creator>michaelsplunk1</dc:creator>
      <dc:date>2021-05-26T20:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between true and not false?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-difference-between-true-and-not-false/m-p/553200#M5907</link>
      <description>&lt;P&gt;If you are asking this for a search command string, then the two statements&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myField = true
myField != false&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;is like saying&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myField = "true"
myField != "false"&lt;/LI-CODE&gt;&lt;P&gt;because Splunk does not have boolean field types, only string and number so clearly the above would not be the same.&lt;/P&gt;&lt;P&gt;In general, Splunk does not have the concept of a field with boolean values, as you can see from this search example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval x=if(true(), true(), false())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 22:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-difference-between-true-and-not-false/m-p/553200#M5907</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-05-26T22:31:12Z</dc:date>
    </item>
  </channel>
</rss>

