<?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 Run if Conditions in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352905#M119196</link>
    <description>I have a question how to program next line, or how to use multiple if statements, nested if possible
&lt;BR /&gt;For example:
&lt;BR /&gt;if (ParameterName = "PARAMETERNAME") AND (ParameterName = "SECONDPARAMETERNAME") AND (ParameterValue of "SECONDPARAMETERNAME" = 10) or (ParameterValue of "SECONDPARAMETERNAME" = 11)
&lt;BR /&gt;then how do i need to create a Condition check here ?
&lt;BR /&gt;Or better asked, how do you need to define an 'AND' or an 'OR' condition here ? is this by using the &amp;amp;&amp;amp; or || here ? or does this goes different.
&lt;BR /&gt;And is it possible to create nested if Conditions here ????
&lt;BR /&gt;Thanks in advance
&lt;BR /&gt;Frans</description>
    <pubDate>Sat, 16 Nov 2024 12:47:27 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T12:47:27Z</dc:date>
    <item>
      <title>Run if Conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352905#M119196</link>
      <description>I have a question how to program next line, or how to use multiple if statements, nested if possible
&lt;BR /&gt;For example:
&lt;BR /&gt;if (ParameterName = "PARAMETERNAME") AND (ParameterName = "SECONDPARAMETERNAME") AND (ParameterValue of "SECONDPARAMETERNAME" = 10) or (ParameterValue of "SECONDPARAMETERNAME" = 11)
&lt;BR /&gt;then how do i need to create a Condition check here ?
&lt;BR /&gt;Or better asked, how do you need to define an 'AND' or an 'OR' condition here ? is this by using the &amp;amp;&amp;amp; or || here ? or does this goes different.
&lt;BR /&gt;And is it possible to create nested if Conditions here ????
&lt;BR /&gt;Thanks in advance
&lt;BR /&gt;Frans</description>
      <pubDate>Sat, 16 Nov 2024 12:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352905#M119196</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Run if Conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352906#M119197</link>
      <description>Hi 
&lt;BR /&gt;in talend you have to write expression like this. 
&lt;BR /&gt;ParameterName.equals("PARAMETERNAME") &amp;amp;&amp;amp; (ParameterName.equals("SECONDPARAMETERNAME") &amp;amp;&amp;amp;(ParameterValue ."SECONDPARAMETERNAME" = 10) ||(ParameterValue."SECONDPARAMETERNAME" = 11)?true:false 
&lt;BR /&gt;for nested 
&lt;BR /&gt;ParameterName.equals("PARAMETERNAME") ?(ParameterName.equals("SECONDPARAMETERNAME") ?true:false:false 
&lt;BR /&gt;hope it helps you</description>
      <pubDate>Fri, 22 Jul 2011 15:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352906#M119197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-22T15:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Run if Conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352907#M119198</link>
      <description>Let me describe my situation, then it probably becomes more clear 
&lt;BR /&gt;I use 3 components 
&lt;BR /&gt; a Database (firebird) containing parameters and corresponding values , that are selected using this SQL Statement: 
&lt;BR /&gt;Select PROGRAMPARAMETERS.NAME,PROGRAMPARAMETERS.PARAMETERVALUE from PROGRAMPARAMETERS WHERE PROGRAMPARAMETERS.PROGRAMID = 101" 
&lt;BR /&gt;Returns a list of parameterNames and ParameterValues 
&lt;BR /&gt; tContextLoad component, in where i have defined an schema OfLoadParameters, with 2 fields called ParameterName and ParameterValue. On the LoadParameters (Output) side there are 4 fields, called ParameterName, ParameterValue and the 2 default values called key and value 
&lt;BR /&gt; tRunJob Component that should be started when the run if value ParameterName = PARAMETERNAME and ParameterValue = PARAMETERVALUE 
&lt;BR /&gt;PARAMETERNAME and PARAMETERVALUE both are string types. 
&lt;BR /&gt;What is now the exact code definition that i need to enter when i want to start this particular job under above mentioned condition. 
&lt;BR /&gt;For me it is not clear how this run if is created and when you should use the GlobalMap thing or when i should created a different code statement. 
&lt;BR /&gt;Perhaps it is a good idea to create an Component for Run if as well, where you visual can enter the condition.</description>
      <pubDate>Thu, 28 Jul 2011 14:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352907#M119198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-28T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Run if Conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352908#M119199</link>
      <description>Hi
&lt;BR /&gt;It will better if you give a screenshot anyhow
&lt;BR /&gt;You can try by giving like
&lt;BR /&gt;tJava-----if-----tRunJob
&lt;BR /&gt;in the if you can check context.ParameterName.equals(&amp;lt;data from the Database input&amp;gt;)
&lt;BR /&gt;hope this clarifies you</description>
      <pubDate>Thu, 28 Jul 2011 15:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352908#M119199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-28T15:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Run if Conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352909#M119200</link>
      <description>Hi mr Lawrence, 
&lt;BR /&gt;Do you mind if i send the example to your email adres directly, because i the screenshot pictures are not uploaded when i press Submit, but deleted. 
&lt;BR /&gt;If you don't mind, can you please send me your email adres then ? 
&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 29 Jul 2011 08:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352909#M119200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-29T08:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Run if Conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352910#M119201</link>
      <description>hi
&lt;BR /&gt;It will be better, if you are able to upload the screenshot in forum as there will me more people who can help you.
&lt;BR /&gt;to upload the screenshots, there are some specific rules like resolution</description>
      <pubDate>Mon, 01 Aug 2011 18:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-Conditions/m-p/2352910#M119201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-01T18:18:39Z</dc:date>
    </item>
  </channel>
</rss>

