<?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: using eval with multiple conditions</title><link>https://www.infopathdev.com:443/forums/thread/124882.aspx</link><pubDate>Fri, 20 May 2022 23:39:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124882</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124882</wfw:commentRss><description>Hi - your suggested filter should be fine - it isn&amp;#39;t clear to me if you are using a double-eval (outside a repeating element) or just eval (in a field inside) - attaching a sample with both. Right click the link and save the file locally, right click the saved file and select design, then preview.</description></item><item><title>using eval with multiple conditions</title><link>https://www.infopathdev.com:443/forums/thread/124881.aspx</link><pubDate>Thu, 19 May 2022 18:47:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124881</guid><dc:creator>Jakke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124881.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124881</wfw:commentRss><description>Hi, I&amp;#39;ve been using the eval function a lot lately to conditional concat a bunch of fields and text.
example: eval(field1[. != &amp;quot;&amp;quot;]; &amp;#39;concat(field1, field2, &amp;quot;text&amp;quot;)&amp;#39;)

So if the field is not empty, it gets added. Very useful!!

but now I want to use 2 conditions: so something like 
eval(field1[. != &amp;quot;&amp;quot; and . != &amp;quot;test&amp;quot;]; &amp;#39;concat(field1, field2, &amp;quot;text&amp;quot;)&amp;#39;)

so field1 must not be empty AND not be &amp;quot;test&amp;quot;.

is this possible?

I also tried to nest another eval, where now the concat expression is, but that&amp;#39;s not working somehow.

tx!</description></item></channel></rss>