<?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: Error tmap with local variables and if statement to perform a check in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-tmap-with-local-variables-and-if-statement-to-perform-a/m-p/2256738#M39036</link>
    <description>You cannot use "if" there because what you write as an expression appears on the right side of the variable affectation. Let's say if you variable is called v1, the generated code will be "var1 = your expression" (have a look at generated code).
&lt;BR /&gt;So the solution is to replace the "if" by a ternary expression such as "row1.field1 &amp;gt; 1 ? 1: 0".</description>
    <pubDate>Sat, 25 Jan 2020 20:35:49 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2020-01-25T20:35:49Z</dc:date>
    <item>
      <title>Error tmap with local variables and if statement to perform a check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-tmap-with-local-variables-and-if-statement-to-perform-a/m-p/2256736#M39034</link>
      <description>&lt;P&gt;Hi Gurus&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have set a local variable process to perform a control check on my partita iva (italian vat number). I don't understand why there is incompatibility error and why i cannot use if statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see attaches&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-tmap-with-local-variables-and-if-statement-to-perform-a/m-p/2256736#M39034</guid>
      <dc:creator>EV89</dc:creator>
      <dc:date>2020-01-16T16:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error tmap with local variables and if statement to perform a check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-tmap-with-local-variables-and-if-statement-to-perform-a/m-p/2256737#M39035</link>
      <description>You are not using correct syntax try below link 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/article/ka03p0000006EYeAAM" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/tMap-expression-syntax/ta-p/21575&lt;/A&gt;</description>
      <pubDate>Sat, 25 Jan 2020 17:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-tmap-with-local-variables-and-if-statement-to-perform-a/m-p/2256737#M39035</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-01-25T17:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error tmap with local variables and if statement to perform a check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-tmap-with-local-variables-and-if-statement-to-perform-a/m-p/2256738#M39036</link>
      <description>You cannot use "if" there because what you write as an expression appears on the right side of the variable affectation. Let's say if you variable is called v1, the generated code will be "var1 = your expression" (have a look at generated code).
&lt;BR /&gt;So the solution is to replace the "if" by a ternary expression such as "row1.field1 &amp;gt; 1 ? 1: 0".</description>
      <pubDate>Sat, 25 Jan 2020 20:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-tmap-with-local-variables-and-if-statement-to-perform-a/m-p/2256738#M39036</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-01-25T20:35:49Z</dc:date>
    </item>
  </channel>
</rss>

