cfif inside loop through columns for table headings not working

Viewed 128

I'm new here so forgive me for all the formatting errors. I'm trying all the help topics...

Using coldfusion, I'm trying to display all columns in a table heading except for 2 of them. They all show up. I'm not sure what I'm doing wrong.

<cfloop list="#ArrayToList(getTableDataHeading.getColumnNames())#"index="col" >
    <cfif "#col#" NEQ "itemID" or "#col#" NEQ "locationID">
        <th>#col#</th>
    </cfif>
</cfloop>
1 Answers
Related