<?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 trigger with multiple conditions in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/IF-trigger-with-multiple-conditions/m-p/2337850#M106151</link>
    <description>&lt;P&gt;Hello! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the IF trigger to do one thing in the job if the globalMap.get("output") contains the words csv or xml and do something else. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried only with csv like this and it worked&lt;/P&gt;&lt;P&gt;option 1&lt;/P&gt;&lt;P&gt;((String)globalMap.get("output")).contains("csv") == false&lt;/P&gt;&lt;P&gt;option 2&lt;/P&gt;&lt;P&gt;((String)globalMap.get("output")).contains("csv") == true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i wanted to check also for xml but i can't get it to work. I tried like this.... &lt;/P&gt;&lt;P&gt;option 1&lt;/P&gt;&lt;P&gt;(String)globalMap.get("output")).contains("csv") == true|| ((String)globalMap.get("output")).contains("xml") == true&lt;/P&gt;&lt;P&gt;option2&lt;/P&gt;&lt;P&gt;(String)globalMap.get("output")).contains("csv") == false || ((String)globalMap.get("output")).contains("xml") == false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that || = or so in my opinion it should ask if string contains csv or xml then go this way and if not go the other way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what am i doing wrong? &lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 13:23:25 GMT</pubDate>
    <dc:creator>jensej</dc:creator>
    <dc:date>2022-12-09T13:23:25Z</dc:date>
    <item>
      <title>IF trigger with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-trigger-with-multiple-conditions/m-p/2337850#M106151</link>
      <description>&lt;P&gt;Hello! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the IF trigger to do one thing in the job if the globalMap.get("output") contains the words csv or xml and do something else. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried only with csv like this and it worked&lt;/P&gt;&lt;P&gt;option 1&lt;/P&gt;&lt;P&gt;((String)globalMap.get("output")).contains("csv") == false&lt;/P&gt;&lt;P&gt;option 2&lt;/P&gt;&lt;P&gt;((String)globalMap.get("output")).contains("csv") == true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i wanted to check also for xml but i can't get it to work. I tried like this.... &lt;/P&gt;&lt;P&gt;option 1&lt;/P&gt;&lt;P&gt;(String)globalMap.get("output")).contains("csv") == true|| ((String)globalMap.get("output")).contains("xml") == true&lt;/P&gt;&lt;P&gt;option2&lt;/P&gt;&lt;P&gt;(String)globalMap.get("output")).contains("csv") == false || ((String)globalMap.get("output")).contains("xml") == false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that || = or so in my opinion it should ask if string contains csv or xml then go this way and if not go the other way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what am i doing wrong? &lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 13:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-trigger-with-multiple-conditions/m-p/2337850#M106151</guid>
      <dc:creator>jensej</dc:creator>
      <dc:date>2022-12-09T13:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: IF trigger with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-trigger-with-multiple-conditions/m-p/2337851#M106152</link>
      <description>&lt;P&gt;I think i solved it myself.&lt;/P&gt;&lt;P&gt;It has to be&lt;/P&gt;&lt;P&gt;option 1 &lt;/P&gt;&lt;P&gt;(String)globalMap.get("output")).contains("csv") == true || ((String)globalMap.get("output")).contains("xml") == true&lt;/P&gt;&lt;P&gt;option 2&lt;/P&gt;&lt;P&gt;(String)globalMap.get("output")).contains("csv") == false &amp;amp;&amp;amp; ((String)globalMap.get("output")).contains("xml") == false&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 13:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-trigger-with-multiple-conditions/m-p/2337851#M106152</guid>
      <dc:creator>jensej</dc:creator>
      <dc:date>2022-12-09T13:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: IF trigger with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-trigger-with-multiple-conditions/m-p/2337852#M106153</link>
      <description>&lt;P&gt;with your current configuration : &lt;/P&gt;&lt;P&gt;  the first option will be triggered if the globalMap variable contains  csv or xml &lt;/P&gt;&lt;P&gt;  the second option will be triggered if the globalMap variable  does not contains neither csv or  xml &lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 17:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-trigger-with-multiple-conditions/m-p/2337852#M106153</guid>
      <dc:creator>Mehdi_Mhedhbi2</dc:creator>
      <dc:date>2022-12-09T17:48:41Z</dc:date>
    </item>
  </channel>
</rss>

