<?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 Multiple actions with a single if condition in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Multiple-actions-with-a-single-if-condition/m-p/1627431#M4408</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I want to execute&amp;nbsp; multiple actions if the &lt;EM&gt;IF&lt;/EM&gt; expression is met.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;if(my_var=1, &lt;STRONG&gt;my_var2=0 and my_var3='one'&lt;/STRONG&gt; ,&amp;lt;my else action&amp;gt;)&lt;/P&gt;&lt;P&gt;putting 'and' in the True case of IF doesn't work. But, I need something like this.&lt;/P&gt;&lt;P&gt;So if my_var=1, I want to set my_var2 to zero and my_var to 'one'.&lt;/P&gt;&lt;P&gt;Please help if you have a solution or any suggestion&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 14:54:57 GMT</pubDate>
    <dc:creator>hajili</dc:creator>
    <dc:date>2021-12-23T14:54:57Z</dc:date>
    <item>
      <title>Multiple actions with a single if condition</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Multiple-actions-with-a-single-if-condition/m-p/1627431#M4408</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I want to execute&amp;nbsp; multiple actions if the &lt;EM&gt;IF&lt;/EM&gt; expression is met.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;if(my_var=1, &lt;STRONG&gt;my_var2=0 and my_var3='one'&lt;/STRONG&gt; ,&amp;lt;my else action&amp;gt;)&lt;/P&gt;&lt;P&gt;putting 'and' in the True case of IF doesn't work. But, I need something like this.&lt;/P&gt;&lt;P&gt;So if my_var=1, I want to set my_var2 to zero and my_var to 'one'.&lt;/P&gt;&lt;P&gt;Please help if you have a solution or any suggestion&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Multiple-actions-with-a-single-if-condition/m-p/1627431#M4408</guid>
      <dc:creator>hajili</dc:creator>
      <dc:date>2021-12-23T14:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple actions with a single if condition</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Multiple-actions-with-a-single-if-condition/m-p/1627452#M4409</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;I think you either need multiple ifs:&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;if(my_var=1, my_var2=0&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;if(my_var=1,my_var3='one'&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;,&amp;lt;my else action&amp;gt;))&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edit: Sorry above won't work&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or maybe create one variable which you will be able to split with subfield for example:&lt;/P&gt;&lt;P&gt;my_varTMP= '0;one' and then my_var2=subfield(my_varTMP,';',1) and so on&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 13:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Multiple-actions-with-a-single-if-condition/m-p/1627452#M4409</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2019-09-24T13:12:05Z</dc:date>
    </item>
  </channel>
</rss>

