<?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: condition in the script in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/condition-in-the-script/m-p/1460393#M11778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zied, this can be done in script or using Data Manager to create a calculated field if script is synchronized, the expression can be:&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;not IsNull(Code_file)&lt;/STRONG&gt; and &lt;STRONG&gt;IsNull(Num_dos)&lt;/STRONG&gt;, 'ValueForTrue', 'ValueForFalse') as Field3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: better use the Len(Trim()) option to handle empty values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2018 12:00:35 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2018-01-08T12:00:35Z</dc:date>
    <item>
      <title>condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/condition-in-the-script/m-p/1460391#M11776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have these fields in a table &lt;/P&gt;&lt;P&gt;Num_dos&lt;/P&gt;&lt;P&gt;Code_file;&lt;/P&gt;&lt;P&gt;i would like to create a field base in the two fields :&lt;/P&gt;&lt;P&gt;Field 3 is when I have &lt;STRONG&gt;Code_file&lt;/STRONG&gt; with a &lt;STRONG&gt;Num_dos&lt;/STRONG&gt; Null or empty &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 11:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/condition-in-the-script/m-p/1460391#M11776</guid>
      <dc:creator>zied_ahmed1</dc:creator>
      <dc:date>2018-01-08T11:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/condition-in-the-script/m-p/1460392#M11777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Num_dos&lt;/P&gt;&lt;P&gt;Code_file,&lt;/P&gt;&lt;P&gt;if(len(trim(Code_file))&amp;gt;0 AND len(trim(Num_dos))=0, 'THEN', 'ELSE') as FIELD_3;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 11:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/condition-in-the-script/m-p/1460392#M11777</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-01-08T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/condition-in-the-script/m-p/1460393#M11778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zied, this can be done in script or using Data Manager to create a calculated field if script is synchronized, the expression can be:&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;not IsNull(Code_file)&lt;/STRONG&gt; and &lt;STRONG&gt;IsNull(Num_dos)&lt;/STRONG&gt;, 'ValueForTrue', 'ValueForFalse') as Field3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: better use the Len(Trim()) option to handle empty values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 12:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/condition-in-the-script/m-p/1460393#M11778</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-01-08T12:00:35Z</dc:date>
    </item>
  </channel>
</rss>

