<?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: Multiple conditionals within a common control</title><link>https://www.infopathdev.com:443/forums/thread/79213.aspx</link><pubDate>Mon, 04 Jun 2012 20:20:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79213</guid><dc:creator>workin'stiff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79213.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79213</wfw:commentRss><description>&lt;p&gt;I ended up splitting everything into six separate conditions. And it worked like a champ!&lt;/p&gt;
&lt;p&gt;Sometimes it all about the KISS concept.&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;br /&gt;Tom&lt;/p&gt;</description></item><item><title>Re: Multiple conditionals within a common control</title><link>https://www.infopathdev.com:443/forums/thread/79212.aspx</link><pubDate>Mon, 04 Jun 2012 19:20:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79212</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79212.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79212</wfw:commentRss><description>&lt;p&gt;I have a feeling that the issue here is the associativity of AND and OR.&amp;nbsp; AND has a higher precedence than OR, so in this case, what you&amp;#39;re actually getting is:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;strong&gt;[&lt;/strong&gt;TB1 is equal to 39,000 AND TB2 is less than 3500&lt;strong&gt;]&lt;/strong&gt; OR TB2 is greater than 3700&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;strong&gt;[&lt;/strong&gt;TB1 is equal to 40,000 AND TB2 is less than 3670&lt;strong&gt;]&lt;/strong&gt; OR TB2 is greater than 3870&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;strong&gt;[&lt;/strong&gt;TB1 is equal to 41,000 AND TB2 is less than 3840&lt;strong&gt;]&lt;/strong&gt; OR TB2 is greater than 4040&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I&amp;#39;d suggest either splitting this out into 6 conditions:&lt;/p&gt;&lt;p&gt;1. TB1 is equal to 39,000 AND TB2 is less than 3500&lt;br /&gt;2. TB1 is equal to 39,000 AND TB2 is greater than 3700&lt;br /&gt;etc.&lt;/p&gt;&lt;p&gt;or you can use 3 exceptions, but have the OR part entered on a single line, as a manually-entered condition:&lt;/p&gt;&lt;p&gt;1. TB1 is equal to 39,000 AND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (TB2 is less than 3500 OR TB2 is greater than 3700)&lt;br /&gt;etc.&lt;/p&gt;</description></item><item><title>Multiple conditionals within a common control</title><link>https://www.infopathdev.com:443/forums/thread/79211.aspx</link><pubDate>Mon, 04 Jun 2012 19:09:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79211</guid><dc:creator>workin'stiff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79211.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79211</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got an issue where I need to have multiple conditionals (read formatting) within a common control. See my example below.&lt;/p&gt;
&lt;p&gt;Text Box 1 (Integer)&lt;br /&gt;Text Box 2 (Integer)&lt;/p&gt;
&lt;p&gt;Text Box 1 (e.g. TB1)&amp;nbsp;will contain one of three user entered values - 39,000 / 40,000 / 41,000. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;If the user enters 39,000 into TB1, the acceptable range for Text Box 2 (TB2)&amp;nbsp;needs to fall within 3500 to 3700. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If the user enters 40,000 into TB1, the acceptable range for TB 2 is 3670 to 3870. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If the user enters 41,000 into TB1, the acceptable range for TB2 is 3840 to 4040.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I currently have the conditional formatting set up within TB 2 as follows (each of the items below are a separate conditional):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;TB1 is equal to 39,000 AND TB2 is less than 3500 OR TB2 is greater than 3700&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;TB1 is equal to 40,000 AND TB2 is less than 3670 OR TB2 is greater than 3870&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;TB1 is equal to 41,000 AND TB2 is less than 3840 OR TB2 is greater than 4040&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;The problem is that only the first set of conditional formatting&amp;nbsp;is being applied to TB2, regardless of the value within TB1. Am I misinterpreting the funcitonality of the AND within setup of the conditional formatting?&lt;/p&gt;
&lt;p&gt;Let me know if I need to provide additional clarification.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;br /&gt;Tom&lt;/p&gt;</description></item></channel></rss>