<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Understanding Rule conditions</title><link>https://www.infopathdev.com:443/forums/thread/63077.aspx</link><pubDate>Wed, 12 Jan 2011 02:00:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63077</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63077</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy for your suggestion! I was all resigned to do coding already...&lt;/p&gt;
&lt;p&gt;Using expressions to act as parenthesis works!&lt;/p&gt;</description></item><item><title>Re: Understanding Rule conditions</title><link>https://www.infopathdev.com:443/forums/thread/63056.aspx</link><pubDate>Tue, 11 Jan 2011 15:35:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63056</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63056</wfw:commentRss><description>&lt;p&gt;I couldn&amp;#39;t give you a definitive answer without doing some experimenting myself, but generally in computing contexts, AND has a higher associativity than OR, which means that ANDs are grouped before ORs. This is true for &lt;a href="http://www.w3.org/TR/xpath/#booleans"&gt;XPath&lt;/a&gt; as well, so my guess is that in your example, the latter version is the way the logic would be evaluated.&lt;/p&gt;
&lt;p&gt;The condition builder dialog in InfoPath is ambiguous when you start mixing ANDs and ORs, so I would suggest that rather than doing so and causing yourself or someone else some confusion and headaches down the road, that you either:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;-Handwrite one large expression, combining the ANDs and ORs the way you want with parentheses, or...&lt;/p&gt;
&lt;p&gt;-Arrange your condition so that you are only using either AND or OR in the dropdowns, and use handwritten expressions for the sub-conditions&amp;nbsp;where necessary, e.g.:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A is blank&amp;nbsp; [AND]&amp;lt;---dropdown&lt;/p&gt;
&lt;p&gt;(B != &amp;#39;&amp;#39; or C != &amp;#39;&amp;#39;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This way there is no ambiguity, and no confusion.&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Understanding Rule conditions</title><link>https://www.infopathdev.com:443/forums/thread/63049.aspx</link><pubDate>Tue, 11 Jan 2011 11:39:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63049</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63049.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63049</wfw:commentRss><description>&lt;p&gt;And what happens if my IF condition is: A is blank&amp;nbsp;and One is not blank&amp;nbsp;or&amp;nbsp;Two is not blank?&lt;/p&gt;
&lt;p&gt;Will it be read as (A is blank) and (One is not blank&amp;nbsp;or&amp;nbsp;Two is not blank)&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;(A is blank and One is not blank)&amp;nbsp;or&amp;nbsp;(Two is not blank)&lt;/p&gt;</description></item><item><title>Understanding Rule conditions</title><link>https://www.infopathdev.com:443/forums/thread/63048.aspx</link><pubDate>Tue, 11 Jan 2011 11:31:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63048</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63048.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63048</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am stumped by how rule conditions work when there are multiple fields to consider. For example if there are 3 fields, &amp;quot;A&amp;quot;, &amp;quot;One&amp;quot;, and &amp;quot;Two&amp;quot; and want to set a &amp;quot;Results&amp;quot; field to be = 1 if &amp;quot;A&amp;quot; is blank and (&amp;quot;One&amp;quot; or &amp;quot;Two&amp;quot; is not blank). &lt;/p&gt;
&lt;p&gt;Do I set the condition as IF: A is blank and One is not blank or Two is not blank? What happens if I set it as IF:&amp;nbsp; One is not blank or Two is not blank and A is blank?&lt;/p&gt;
&lt;p&gt;Will my second statement be recognized as&amp;nbsp;(&amp;quot;One&amp;quot; or &amp;quot;Two&amp;quot; is not blank) and (&amp;quot;A&amp;quot; is blank)? Or will the AND condition take precedence and cause my second condition to be (One is not blank) OR (Two is not blank and A is blank)?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have 4 fields to do such filtering and this logic is driving me nuts... So how does InfoPath read its condition statements?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bangs head on wall,&lt;/p&gt;
&lt;p&gt;Zhen Yuan&lt;/p&gt;</description></item></channel></rss>