<?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 if and else condition in tmap expression in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263347#M43519</link>
    <description>Hi, 
&lt;BR /&gt;I need to use the below if and else condition in tmap expression. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;IF ST_ABBR IN (‘CT’,’MA’,’ME’,’NH’,’RI’,’VT’)&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; MOVE 'N'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO SSI-OMB-TYPE (alpha 1 byte)&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;ELSE&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; MOVE 'M'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO SSI-OMB-TYPE (alpha 1 byte)&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I'm using the below condition in tmap and please let me know if anything is wrong 
&lt;BR /&gt;zip_Denorm_unload.ST_ABBR==("CT","MA","ME","NH","RI","VT")?"N":"M" 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Fri, 12 Feb 2016 01:38:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-12T01:38:54Z</dc:date>
    <item>
      <title>if and else condition in tmap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263347#M43519</link>
      <description>Hi, 
&lt;BR /&gt;I need to use the below if and else condition in tmap expression. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;IF ST_ABBR IN (‘CT’,’MA’,’ME’,’NH’,’RI’,’VT’)&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; MOVE 'N'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO SSI-OMB-TYPE (alpha 1 byte)&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;ELSE&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; MOVE 'M'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO SSI-OMB-TYPE (alpha 1 byte)&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I'm using the below condition in tmap and please let me know if anything is wrong 
&lt;BR /&gt;zip_Denorm_unload.ST_ABBR==("CT","MA","ME","NH","RI","VT")?"N":"M" 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Courier New"&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 12 Feb 2016 01:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263347#M43519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T01:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: if and else condition in tmap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263348#M43520</link>
      <description>Hi yugandhar9, 
&lt;BR /&gt;I like to know type of ST_ABBR. Is it string. 
&lt;BR /&gt;If it is string then you can use following expression: 
&lt;BR /&gt;&amp;nbsp;row1.name.matches("val1 | val2 | val 3") ? "value1" :"value2"; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Amol &amp;nbsp;</description>
      <pubDate>Fri, 12 Feb 2016 07:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263348#M43520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T07:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: if and else condition in tmap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263349#M43521</link>
      <description>Thank you Amol!It worked</description>
      <pubDate>Fri, 12 Feb 2016 23:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263349#M43521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T23:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: if and else condition in tmap expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263350#M43522</link>
      <description>Welcome..!!
&lt;BR /&gt;Nice to see that solution worked for you.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Amol.</description>
      <pubDate>Mon, 15 Feb 2016 04:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-and-else-condition-in-tmap-expression/m-p/2263350#M43522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-15T04:36:45Z</dc:date>
    </item>
  </channel>
</rss>

