ColdFusion - How to use IS NOT operator in cfif conditional processing

CFif IS NOT operator

cfifISNOTOperator.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>cfif IS NOT operator - how to use (IS NOT) operator in cfif conditional processing</title>
    <style type="text/css">
  .divCSS
  {
   background-color:DeepPink;
   color:Snow;
   font-family:"Courier New", Courier, monospace;
   font-size:large;
   width:450px;
   height:75px;
   text-align:center;
   padding-top:25px;
   }
 </style>
</head>

<body>
<h2 style="color:SeaGreen; font-style:italic">coldfusion cfif tag example: how to use "IS NOT" operator</h2>
<hr width="550" align="left" color="DarkSeaGreen" />
<br />


<cfset PreferedColor="DodgerBlue">

<div class="divCSS">
 <cfif PreferedColor IS NOT "Crimson">
        Your prefered color is not: Crimson
    <cfelse>
        Your prefered color is: Crimson    
    </cfif>
</div>

</body>
</html>



More ColdFusion tutorials