In coldfusion booleanVar == false and !booleanVar is not one. If you have a variable, If the boolean value is set like var booleanVar =…