<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: logical expression in calculation</title><link>https://www.infopathdev.com:443/forums/thread/65584.aspx</link><pubDate>Wed, 30 Mar 2011 08:26:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65584</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65584</wfw:commentRss><description>&lt;p&gt;This expression should work:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;translate(number(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;), &amp;#39;Na&amp;#39;, &amp;#39;0&amp;#39;)&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>logical expression in calculation</title><link>https://www.infopathdev.com:443/forums/thread/65583.aspx</link><pubDate>Wed, 30 Mar 2011 05:07:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65583</guid><dc:creator>ilya.mim</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65583</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a repeating table which contains costs. I have to calculate a total cost. I use&amp;nbsp;sum function.&lt;/p&gt;
&lt;p&gt;But some rows can contain a symbol &amp;quot;-&amp;quot;.&amp;nbsp;Sum function returns &amp;quot;NAN&amp;quot; in this case/&lt;/p&gt;
&lt;p&gt;Can I use some logical expression to check a value of control and return &amp;quot;0&amp;quot; if the value is &amp;quot;-&amp;quot;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>