The easy way to compare two lists in ColdFusion

While it comes to comparing two lists in ColdFusion, there is no predefined functions or tags to do so. We can think of one way of doing so as below.

Usual way of doing:















Match happened 

Match did not happen 

But we do have one easy way to do so. Just take a look at below few lines of code.

Easy way of doing:











matched 

Match did not happen 

** To compare two lists having text list elements, we should use listSort(list, ‘text’)

150 150 Burnignorance | Where Minds Meet And Sparks Fly!