What are the differences between Tags and the Script operators in ColdFusion?
Tag and script operators have some basic differences that we should be aware of. I have also added some common tags that we frequently use.
| Tags | Script |
|---|---|
| cfif | if |
| cfloop | loop |
| cfabort | abort |
| cfbreak | break |
| cfcontinue | continue |
| cfdump | writeDump |
| cfoutput | writeOutput |
| cfexit | exit |
| Tags | Script |
|---|---|
| EQ | == |
| IS | == |
| NEQ | != |
| IS NOT | != |
| NOT | ! |
| GREATER THAN | > |
| GT | > |
| GREATER THAN OR EQUAL TO | >= |
| GTE | >= |
| GE | >= |
| LESS THAN | < |
| LT | < |
| LT | < |
| LESS THAN OR EQUAL TO | <= |
| LTE | <= |
| LE | <= |
| CONTAINS | Find |
| CONTAINS | FindNoCase |
