<?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: Boolean - different behaviour in QVW and QVD load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Boolean-different-behaviour-in-QVW-and-QVD-load-script/m-p/393444#M701781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right that there are glitches in the formatting of boolean values. Sometimes the formatting as True or False fails. I haven't investigated it more thouroughly so I cannot give you the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it just concerns the formatting - not the evaluation. In fact, any non-zero number is interpreted as True in logical expressions. And zero is interpreted as False. So you really don't need the "If(WildMatch(...) &amp;gt; 0, True(), False())". You can use "WildMatch(...)" directly as boolean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 13:29:21 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-10-09T13:29:21Z</dc:date>
    <item>
      <title>Boolean - different behaviour in QVW and QVD load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Boolean-different-behaviour-in-QVW-and-QVD-load-script/m-p/393443#M701780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather strange problem with the folowing script code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, If(WildMatch(...) &amp;gt; 0, True(), False()) AS is_spare_part RESIDENT tmp_Item;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this code in a QVD, the field is_spare_part contains a boolean value (I assume of type dual) which gets displayed as True/False in the GUI and as 0/-1 when using Num(is_spare_part). The same script - when implemented in a QVW - creates a field that does contain the correct values 0 and -1 but the values would not be displayes as True/False in the GUI. Somehow, the field does not get recognized as a boolean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks as if QV (QV11 SR2) treats booleans differently in QVD and QVW scripts. Or am I missing something? I just like to understand what is going on here. Your input / feedback is really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 09:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Boolean-different-behaviour-in-QVW-and-QVD-load-script/m-p/393443#M701780</guid>
      <dc:creator />
      <dc:date>2012-10-09T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Boolean - different behaviour in QVW and QVD load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Boolean-different-behaviour-in-QVW-and-QVD-load-script/m-p/393444#M701781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right that there are glitches in the formatting of boolean values. Sometimes the formatting as True or False fails. I haven't investigated it more thouroughly so I cannot give you the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it just concerns the formatting - not the evaluation. In fact, any non-zero number is interpreted as True in logical expressions. And zero is interpreted as False. So you really don't need the "If(WildMatch(...) &amp;gt; 0, True(), False())". You can use "WildMatch(...)" directly as boolean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Boolean-different-behaviour-in-QVW-and-QVD-load-script/m-p/393444#M701781</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-09T13:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Boolean - different behaviour in QVW and QVD load script?</title>
      <link>https://community.qlik.com/t5/QlikView/Boolean-different-behaviour-in-QVW-and-QVD-load-script/m-p/393445#M701782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your feedback and for your tip to use the WildMatch directly. I was not aware of this option. This simplifies the expression somewhat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Boolean-different-behaviour-in-QVW-and-QVD-load-script/m-p/393445#M701782</guid>
      <dc:creator />
      <dc:date>2012-10-09T15:21:26Z</dc:date>
    </item>
  </channel>
</rss>

