<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Explain Contains and Not Contains Conditions</title><link>https://www.infopathdev.com:443/forums/thread/67333.aspx</link><pubDate>Tue, 14 Jun 2011 13:39:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67333</guid><dc:creator>corybooth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=67333</wfw:commentRss><description>Discovered my error.
The logic I am using seems to be fine.
Setting a boolean to TRUE is not correct.
It must be boolean(&amp;quot;True&amp;quot;)</description></item><item><title>Explain Contains and Not Contains Conditions</title><link>https://www.infopathdev.com:443/forums/thread/67332.aspx</link><pubDate>Tue, 14 Jun 2011 12:59:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67332</guid><dc:creator>corybooth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67332.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=67332</wfw:commentRss><description>I am trying a concept to control the workflow of a form.
I am reading in a sharepoint list of emails along with the role of the users.
A list might look like:

a@a.com; b@b.com; c@c.com   || Admin
d@d.com; b@b.com                   || Super Admin

I save these entries on the form in an appropriate field for email and role.


When a form is opened, I read the user&amp;#39;s email field and save it to a form field.

I am now trying to do a comparison event.

If Admin contains User Email - then....
If Super Admin contains User Email - then...

So if a user came in with email b@b.com - they would be true for both events above.

I have a view on my form where I have the Admin and Super Admin emails as well as the user&amp;#39;s email displayed.
I have ensured both areas are lowercase (using translate)....

But the contains condition does not report true when a user&amp;#39;s email IS listed inside of one or more of the saved roles.

So I am curious, how does contains actually operate as an InfoPath condition?
Is it similar to:

Select * from Users where Email Like &amp;#39;%b$b.com%&amp;#39;

Thanks in advance</description></item></channel></rss>