<?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 statement determined by varaible value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-determined-by-varaible-value/m-p/1555106#M440627</link>
    <description>&lt;P&gt;Hi, I am trying to set a rule to highlight the text box depends on the variable value&lt;/P&gt;&lt;P&gt;Below are my draft script:&lt;/P&gt;&lt;P&gt;if(vOn='Y',rgb(0,255,0),rgb(255,255,255)&lt;/P&gt;&lt;P&gt;value for vOn: 'Y'&lt;/P&gt;&lt;P&gt;It appears that always 'else' expression is shown (white background)&lt;/P&gt;&lt;P&gt;The statement seems to be worked when I change the value of vOn to Y instead of 'Y'. I think it should be quotation problem. But what should I do to my script if I really want to use 'Y' as the variable value.&lt;/P&gt;&lt;P&gt;Prior thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:16:03 GMT</pubDate>
    <dc:creator>Sky_qlik</dc:creator>
    <dc:date>2024-11-16T21:16:03Z</dc:date>
    <item>
      <title>If statement determined by varaible value</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-determined-by-varaible-value/m-p/1555106#M440627</link>
      <description>&lt;P&gt;Hi, I am trying to set a rule to highlight the text box depends on the variable value&lt;/P&gt;&lt;P&gt;Below are my draft script:&lt;/P&gt;&lt;P&gt;if(vOn='Y',rgb(0,255,0),rgb(255,255,255)&lt;/P&gt;&lt;P&gt;value for vOn: 'Y'&lt;/P&gt;&lt;P&gt;It appears that always 'else' expression is shown (white background)&lt;/P&gt;&lt;P&gt;The statement seems to be worked when I change the value of vOn to Y instead of 'Y'. I think it should be quotation problem. But what should I do to my script if I really want to use 'Y' as the variable value.&lt;/P&gt;&lt;P&gt;Prior thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-determined-by-varaible-value/m-p/1555106#M440627</guid>
      <dc:creator>Sky_qlik</dc:creator>
      <dc:date>2024-11-16T21:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: If statement determined by varaible value</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-determined-by-varaible-value/m-p/1555111#M440628</link>
      <description>&lt;P&gt;Use pairs of single quotes to embed them in the condition:&lt;/P&gt;&lt;PRE&gt;=if(vOn = '''Y''', rgb(0,255,0), rgb(255,255,255)&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Mar 2019 04:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-determined-by-varaible-value/m-p/1555111#M440628</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-03-12T04:52:05Z</dc:date>
    </item>
  </channel>
</rss>

