structEquals

Performs a deep comparison of two structures to see if they represent the same values

structEquals(struct1, struct2) → returns boolean

This function requires OpenBD.  Not supported on Lucee, Adobe ColdFusion, etc.

Argument Reference

struct1 struct
Required

A structure to compare

struct2 struct
Required

A structure to compare

Examples
Sample code invoking the structEquals function

config1 = {a:0, b:0};
config2 = {a:0, b:1};
writeOutput( structEquals(config1, config2) );

Expected Result: NO

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub