Whatever message this page gives is out now! Go check it out!
size().count() reports the same cardinality as size() in APIs that offer both (for example Java-style naming). If only one of the two exists in your ColdFusion build, use that one consistently.set.count()| Parameter | Description |
|---|---|
| — | None. |
cfscript (uncomment count() if your build supports it).
<cfscript>
s = setNew();
writeOutput(s.size()); // 0
s.add("a");
s.add("b");
writeOutput(s.size()); // 2
// If supported as an alias:
writeOutput(s.count());
</cfscript>