<?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 == and = in SPL ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-and-in-SPL/m-p/486742#M193722</link>
    <description>&lt;P&gt;The &lt;CODE&gt;==&lt;/CODE&gt; operator means "is equal to".  The &lt;CODE&gt;=&lt;/CODE&gt; operator means either "is equal to" or "is assigned to" depending on the context.&lt;BR /&gt;
Either operator can be used to compare two fields/values with &lt;CODE&gt;==&lt;/CODE&gt; more clearly indicating a comparison rather than an assignment.&lt;BR /&gt;
Use &lt;CODE&gt;=&lt;/CODE&gt; to assign a value to a field.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 13:51:13 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-11-19T13:51:13Z</dc:date>
    <item>
      <title>What is the difference between == and = in SPL ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-and-in-SPL/m-p/486741#M193721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've seen it several times but don't know the difference and when to use &lt;STRONG&gt;==&lt;/STRONG&gt; instead of &lt;STRONG&gt;=&lt;/STRONG&gt; .&lt;BR /&gt;
Like in these samples from the docs:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;| eval description=case(status == 200, "OK", status ==404, "Not found", status == 500, "Internal Server Error")&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;| eval action=if(action=="view",...)&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:39:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-and-in-SPL/m-p/486741#M193721</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2019-11-19T13:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between == and = in SPL ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-and-in-SPL/m-p/486742#M193722</link>
      <description>&lt;P&gt;The &lt;CODE&gt;==&lt;/CODE&gt; operator means "is equal to".  The &lt;CODE&gt;=&lt;/CODE&gt; operator means either "is equal to" or "is assigned to" depending on the context.&lt;BR /&gt;
Either operator can be used to compare two fields/values with &lt;CODE&gt;==&lt;/CODE&gt; more clearly indicating a comparison rather than an assignment.&lt;BR /&gt;
Use &lt;CODE&gt;=&lt;/CODE&gt; to assign a value to a field.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-and-in-SPL/m-p/486742#M193722</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-19T13:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between == and = in SPL ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-and-in-SPL/m-p/486743#M193723</link>
      <description>&lt;P&gt;Thanks a lot. I never used == and never ran into problems, that's why I was wondering.&lt;BR /&gt;
So in the end it is more a cosmetical thing to use ==.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 14:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-difference-between-and-in-SPL/m-p/486743#M193723</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2019-11-19T14:04:52Z</dc:date>
    </item>
  </channel>
</rss>

