Ben Nadel adds two convenience wrapper functions, isSame() and isDifferent(), to his ColdFusion global extensions file. These are semantic boolean wrappers around ColdFusion's built-in compare() function, which returns a numeric result. The wrappers make case-sensitive string comparisons more readable in application code, translating the numeric output into human-friendly boolean values. The post includes the UDF implementations and a working example demonstrating their behavior with case-sensitive string pairs.
Sort: