<?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: Math - Contrain 2 fields to equal a value</title><link>https://www.infopathdev.com:443/forums/thread/71504.aspx</link><pubDate>Fri, 28 Oct 2011 21:45:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71504</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71504.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71504</wfw:commentRss><description>&lt;p&gt;It looks like you want:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;substring(&amp;quot;1&amp;quot;, 1, (Field1 = 1) and (Field2 = 2))&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I assume you want the result to be blank when it doesn&amp;#39;t pass those conditions?&amp;nbsp; If you want Field3 to be 1 when the condition is true and 0 when it&amp;#39;s false, this should work as the formula:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;number((Field1 = 1) and (Field2 = 2))&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Math - Contrain 2 fields to equal a value</title><link>https://www.infopathdev.com:443/forums/thread/71503.aspx</link><pubDate>Fri, 28 Oct 2011 21:12:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71503</guid><dc:creator>mrmapi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71503</wfw:commentRss><description>&lt;p&gt;I have 3 felds.&amp;nbsp; Field1 and Field2 contain&amp;nbsp;numbers.&amp;nbsp; Field3 is&amp;nbsp;the result where the formula needs to be placed.&amp;nbsp;&amp;nbsp;When Field1 = 1&amp;nbsp;AND when Field2 = 2&amp;nbsp;I want to display a value of 1 in Field3 (or a value of true as example)&amp;nbsp; The formula i tried to come up with is:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;substring(&amp;quot;1&amp;quot;, 1, (((Field1 = 1) + Field2 = 2) = 3))&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;problem is that I end up with only able to constrain one of the fields but not both.&amp;nbsp; This is needed because another arument using the same field2 conflicts with&amp;nbsp;this when it is not working properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help is much appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jason&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>