<?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 in inout box custom constraint in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-in-inout-box-custom-constraint/m-p/1139708#M373676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an if statement in my custom constraint in an input box. Currently I have the following which works fine :&lt;/P&gt;&lt;P&gt;=$ &amp;gt;vPLR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to write something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(vUser=2,vPLR,$ &amp;gt;vPLR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize the above is not the correct syntax but looking for help if it is possible to write an if statement in a constraint and how it would look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 14:28:08 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2016-09-02T14:28:08Z</dc:date>
    <item>
      <title>If statement in inout box custom constraint</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-inout-box-custom-constraint/m-p/1139708#M373676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an if statement in my custom constraint in an input box. Currently I have the following which works fine :&lt;/P&gt;&lt;P&gt;=$ &amp;gt;vPLR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to write something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(vUser=2,vPLR,$ &amp;gt;vPLR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realize the above is not the correct syntax but looking for help if it is possible to write an if statement in a constraint and how it would look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-inout-box-custom-constraint/m-p/1139708#M373676</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2016-09-02T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in inout box custom constraint</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-inout-box-custom-constraint/m-p/1139709#M373677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it would work if you had another variable (e.g. vConstraint) that does the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=If(vUser=2,vPLR,$ &amp;gt;vPLR)" calculation and then just use the variable in the constraint setting?&amp;nbsp; This way you're not actually doing the if calculation in the constraint setting but passing in the actual values that have already been calculated in the variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 19:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-inout-box-custom-constraint/m-p/1139709#M373677</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-09-02T19:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in inout box custom constraint</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-inout-box-custom-constraint/m-p/1139710#M373678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicole. Makes perfect sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 20:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-inout-box-custom-constraint/m-p/1139710#M373678</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2016-09-02T20:13:35Z</dc:date>
    </item>
  </channel>
</rss>

