<?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: Context Variable to Global Variable for if statement in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-Variable-to-Global-Variable-for-if-statement/m-p/2331271#M100266</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please try to give below condition in if clause?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;context.varGetResults.equalsIgnoreCase("Y")&lt;/PRE&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 03:30:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-24T03:30:16Z</dc:date>
    <item>
      <title>Context Variable to Global Variable for if statement</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-Variable-to-Global-Variable-for-if-statement/m-p/2331270#M100265</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job which uses a tsetglobalvar component which works great. I have tried to create Context variables with user inputs then pass the values into the&amp;nbsp;tsetglobalvar in place of the hard coded ones. Everything is working well, apart from the &lt;STRONG&gt;"if statements"&lt;/STRONG&gt; to begin sub jobs, which no longer seem to be detecting the value, any ideas?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have tested it via the Tlog and it does output the correct value, therefore can not work out why the "if statements" not longer work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Below is the context settings.&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M53g.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127858iC75819E4BFCDAA33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M53g.png" alt="0683p000009M53g.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Below are the tSetGlobalVar settings.&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tSetGlobalVar.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M53l.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144174iE9AC1723345700A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M53l.png" alt="0683p000009M53l.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Below is what is in the if statement.&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ifstatement.PNG" style="width: 440px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M53v.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146890i73E6622C77D0021F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M53v.png" alt="0683p000009M53v.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My test with Tlog&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.PNG" style="width: 319px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M540.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135126i00BC2791722A4ED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M540.png" alt="0683p000009M540.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TlogTest.PNG" style="width: 329px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M545.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136052i0A9EEFB5F43E80F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M545.png" alt="0683p000009M545.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 02:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-Variable-to-Global-Variable-for-if-statement/m-p/2331270#M100265</guid>
      <dc:creator>DavidETL</dc:creator>
      <dc:date>2019-05-24T02:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Context Variable to Global Variable for if statement</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-Variable-to-Global-Variable-for-if-statement/m-p/2331271#M100266</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please try to give below condition in if clause?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;context.varGetResults.equalsIgnoreCase("Y")&lt;/PRE&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 03:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-Variable-to-Global-Variable-for-if-statement/m-p/2331271#M100266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T03:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Context Variable to Global Variable for if statement</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-Variable-to-Global-Variable-for-if-statement/m-p/2331272#M100267</link>
      <description>Hey, Thanks that has worked. Well done.&lt;BR /&gt;&lt;BR /&gt;Appreciate your effort</description>
      <pubDate>Fri, 24 May 2019 03:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-Variable-to-Global-Variable-for-if-statement/m-p/2331272#M100267</guid>
      <dc:creator>DavidETL</dc:creator>
      <dc:date>2019-05-24T03:48:22Z</dc:date>
    </item>
  </channel>
</rss>

