How to use NEQ operator in cfif condition in ColdFusion

CFif NEQ operator

cfifNEQOperator.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 NEQ operator - how to use (NEQ) operator in cfif condition</title>
    <style type="text/css">
  .divCSS
  {
   background-color:Crimson;
   color:White;
   font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
   font-size:large;
   width:400px;
   height:60px;
   text-align:center;
   padding-top:10px;
   border:thick;
   border-style:dotted;
   }
 </style>
</head>

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


<cfset UserRole="Guest">

<div class="divCSS">
 <cfif UserRole NEQ "Admin" >
        Sorry guest are not allowed to see the secret number!
    <cfelse>
        Wellcome!<br /> your secret number is: 255
    </cfif>
</div>

</body>
</html>