<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head><meta content="text/html; charset=UTF-8" http-equiv="content-type" />
      
      <title>Condition Statements and Logical Operators</title>
      <meta content="PortalProtect 2.6 Online Help" name="description" />
      <meta content="IE=8" http-equiv="X-UA-Compatible" />
      <link href="resources/webhelp.css" rel="stylesheet" type="text/css" />
   <link href="_wh/user/resources/jquery-ui.css" rel="stylesheet" type="text/css" /><link href="_wh/wh.css" rel="stylesheet" type="text/css" /><script src="_wh/user/resources/jquery.min.js" type="text/javascript"></script><script src="_wh/user/resources/jquery-ui.min.js" type="text/javascript"></script><script type="text/javascript">
            var whMessageTranslations =  [
                'Contents',
                'Index',
                'Search',
                'Collapse All',
                'Expand All',
                'Previous Page',
                'Next Page',
                'Toggle search result highlighting',
                'No results found for %W%.',
                '1 result found for %W%.',
                '%N% results found for %W%.'
            ];
          </script><script charset="UTF-8" src="_wh/wh.min.js" type="text/javascript"></script><script charset="UTF-8" src="_wh/search.js" type="text/javascript"></script><link href="_wh/user/tm.css" rel="stylesheet" type="text/css" /></head>
   
<body>
      <div id="wh-header">
    <table cellpadding="0" cellspacing="0" id="page-header" width="100%">
      <tr valign="top">
        <td align="left" width="115">
          <a href="http://www.trendmicro.com">
            <img alt="Trend Micro homepage" border="0" height="40" id="tm-logo" src="_wh/user/resources/trendball.png" width="104" />
          </a>
        </td>
	<td align="left" valign="middle">
          <h1 id="title">
	     <script type="text/javascript">
               $('#title').html($('meta[name=description]').attr('content'));
             </script>
	  </h1>
	</td>
      </tr>
    </table></div>
      <div id="wh-body">
         <div id="wh-navigation">
            <ul id="wh-tabs">
               <li id="wh-toc-tab"><a href="#wh-toc-pane"><span>Contents</span></a></li>
               <li id="wh-index-tab"><a href="#wh-index-pane"><span>Index</span></a></li>
               <li id="wh-search-tab"><a href="#wh-search-pane"><span>Search</span></a></li>
            </ul>
            <div id="wh-toc-pane">
               <div id="wh-toc-form"><span id="wh-toc-control"><a href="#">Collapse All</a><a href="#">Expand All</a></span><button id="wh-toc-previous">Previous</button><button id="wh-toc-next">Next</button></div><script charset="UTF-8" src="_wh/toc.js" type="text/javascript"></script></div>
            <div id="wh-index-pane">
               <div id="wh-index-form"><input id="wh-index-field" type="text" /></div><script charset="UTF-8" src="_wh/index.js" type="text/javascript"></script></div>
            <div id="wh-search-pane">
               <div id="wh-search-form"><input id="wh-search-field" type="text" /><button id="wh-search-button">Search</button><span id="wh-highlight-group"><input checked="checked" id="wh-highlight-toggle" type="checkbox" /><label for="wh-highlight-toggle">Toggle Highlight</label></span></div>
               <div id="wh-search-results"></div>
            </div>
            <div id="wh-external-search-pane"></div>
         </div>
         <div id="wh-separator"></div>
         <div id="wh-content">
      <div class="reference" id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE" lang="en" xml:lang="en">
         <h2 class="section3-title" id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__GUID-A23FCFC5-9FDD-4B4A-A4DA-2F549418CCBF">Condition Statements and Logical Operators <span class="topic-navigation-bar"><a accesskey="U" class="navigation-link" href="Customized-DLP-Templ.html#GUID-57661670-AD93-4608-ACC8-8F008BC3FB87" title="Parent topic: Customized DLP Templates"><img alt="Parent topic" class="navigation-icon" height="16" src="resources/parent.png" width="16" /></a></span></h2>
         <div class="refbody">
            <div class="section" id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__GUID-879C981C-B12B-4C30-A8AE-E2D2F86B7C36">
               
               <div class="p"><a id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_2x3b64_" name="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_2x3b64_"></a><a id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_2847oi_" name="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_2847oi_"></a><a id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_8e4dey_" name="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_8e4dey_"></a><a id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_l2tyy1_" name="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_l2tyy1_"></a><a id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_cm3s9y_" name="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_cm3s9y_"></a>Data Loss Prevention evaluates condition
                  statements from left to right. Use logical operators carefully when configuring condition
                  statements. Incorrect usage leads to an erroneous condition statement that will likely
                  produce
                  unexpected results.
               </div>
               
               <div class="p">See the examples in the following table.</div>
               
               <div class="table" id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__I_e1vd1a_">
                  <h4 class="table-title" id="GUID-B22E4829-4216-4CB6-8F78-1542B0341FFE__GUID-DC726A03-66B2-4EDA-8B8B-77917B082539">Sample Condition Statements</h4>
                  <table cellspacing="0" class="Properties" style="margin: 0; border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; border-left-width: 1px; border-left-style: solid; border-right-width: 1px; border-right-style: solid;" width="100%">
                     <col class="colspec" width="33%" />
                     <col class="colspec" width="67%" />
                     <thead class="thead">
                        <tr class="row">
                           <th class="header-entry" style="border-bottom-width: 1px; border-bottom-style: solid; border-right-width: 1px; border-right-style: solid;">
                              
                              <div class="p">Condition Statement</div>
                              
                           </th>
                           <th class="header-entry" style="border-bottom-width: 1px; border-bottom-style: solid;">
                              
                              <div class="p">Interpretation and Example</div>
                              
                           </th>
                        </tr>
                     </thead>
                     <tbody class="tbody">
                        <tr class="row">
                           <td class="entry" style="border-bottom-width: 1px; border-bottom-style: solid; border-right-width: 1px; border-right-style: solid;">
                              
                              <div class="p">[Data Identifier1] <i class="term">And</i> [Data Identifier 2] <i class="term">Except</i> [Data Identifier
                                 3]
                              </div>
                              
                           </td>
                           <td class="entry" style="border-bottom-width: 1px; border-bottom-style: solid;">
                              
                              <div class="p">A file must satisfy [Data Identifier 1] and [Data Identifier 2] but not [Data Identifier
                                 3].
                              </div>
                              
                              <div class="p">For example:</div>
                              
                              <div class="p">A file must be [an Adobe PDF document] and must contain [an email address] but should
                                 not contain
                                 [all of the keywords in the keyword list].
                              </div>
                              
                           </td>
                        </tr>
                        <tr class="row">
                           <td class="entry" style="border-bottom-width: 1px; border-bottom-style: solid; border-right-width: 1px; border-right-style: solid;">
                              
                              <div class="p">[Data Identifier 1] <i class="term">Or</i> [Data Identifier 2]
                              </div>
                              
                           </td>
                           <td class="entry" style="border-bottom-width: 1px; border-bottom-style: solid;">
                              
                              <div class="p">A file must satisfy [Data Identifier 1] or [Data Identifier 2].</div>
                              
                              <div class="p">For example:</div>
                              
                              <div class="p">A file must be [an Adobe PDF document] or [a Microsoft Word document].</div>
                              
                           </td>
                        </tr>
                        <tr class="row">
                           <td class="entry" style="border-right-width: 1px; border-right-style: solid;">
                              
                              <div class="p"><i class="term">Except</i> [Data Identifier 1]
                              </div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">A file must not satisfy [Data Identifier 1].</div>
                              
                              <div class="p">For example:</div>
                              
                              <div class="p">A file must not be [a multimedia file].</div>
                              
                           </td>
                        </tr>
                     </tbody>
                  </table>
               </div>
               
               <div class="p">As the last example in the table illustrates, the first data identifier in the condition
                  statement can have the &quot;Except&quot; operator if a file must not satisfy all of the data
                  identifiers in
                  the statement. In most cases, however, the first data identifier does not have an
                  operator.
               </div>
               
            </div>
         </div>
      </div>
   </div>
      </div>
      
      <div id="wh-tm-footer">
         <div id="page-tm-footer">© 2019 Trend Micro Incorporated. All rights reserved.<br /><a href="http://esupport.trendmicro.com/"><span>Search Knowledge Base</span></a></div>
      </div>
   </body></html>