<?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: If then statement issue in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/If-then-statement-issue/m-p/338292#M61585</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/52542"&gt;@garretwalters12&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try taking out the [Item-Txt2]= between your then and 'NY' so that your formula just reads&lt;/P&gt;&lt;PRE&gt;if contains([Item-Txt1], 'NYC') then 'NY' else [Item-Txt2] endif&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Alteryx, you are specifying what column to change with the drop down at the top so you don't have to do it in your expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Dec 2018 13:40:05 GMT</pubDate>
    <dc:creator>Kenda</dc:creator>
    <dc:date>2018-12-05T13:40:05Z</dc:date>
    <item>
      <title>If then statement issue</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/If-then-statement-issue/m-p/338281#M61581</link>
      <description>&lt;P&gt;Why when I use the following if then statement, I am receiving a "0" instead of "NY" when true?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fomula.PNG" style="width: 732px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/49960i355BAFD3A62225E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="fomula.PNG" alt="fomula.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="outcome.PNG" style="width: 282px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/49961i2E24EE7AE5D4EE3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="outcome.PNG" alt="outcome.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 13:35:22 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/If-then-statement-issue/m-p/338281#M61581</guid>
      <dc:creator>garretwalters12</dc:creator>
      <dc:date>2018-12-05T13:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: If then statement issue</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/If-then-statement-issue/m-p/338290#M61584</link>
      <description>&lt;P&gt;Change you if statement to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Contains([Item-Txt1],'NYC' then 'NY' else {Item-Txt2] endif&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 13:39:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/If-then-statement-issue/m-p/338290#M61584</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2018-12-05T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: If then statement issue</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/If-then-statement-issue/m-p/338292#M61585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/52542"&gt;@garretwalters12&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try taking out the [Item-Txt2]= between your then and 'NY' so that your formula just reads&lt;/P&gt;&lt;PRE&gt;if contains([Item-Txt1], 'NYC') then 'NY' else [Item-Txt2] endif&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Alteryx, you are specifying what column to change with the drop down at the top so you don't have to do it in your expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 13:40:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/If-then-statement-issue/m-p/338292#M61585</guid>
      <dc:creator>Kenda</dc:creator>
      <dc:date>2018-12-05T13:40:05Z</dc:date>
    </item>
  </channel>
</rss>

