Question
Remove items from a list
This isn't so much a cold fusion question as a just a logic
question.
I have a form variable "form.list1" that contains numbers 1,2,3,4,5,6,7,8,9
I have a second form variable "form.list2" that contains numbers as well 3, 5, 6
What I want the end result to be is a variable that contains all of the numbers in form.list1 minus what is in form.list2, so that would be 1,2,4,7,8,9.
I can not for the life of me figure out how to do this.
I've tried doing a nested loop list, but I can't see the logic to make it work.
Any help would be greatly appreciated
I have a form variable "form.list1" that contains numbers 1,2,3,4,5,6,7,8,9
I have a second form variable "form.list2" that contains numbers as well 3, 5, 6
What I want the end result to be is a variable that contains all of the numbers in form.list1 minus what is in form.list2, so that would be 1,2,4,7,8,9.
I can not for the life of me figure out how to do this.
I've tried doing a nested loop list, but I can't see the logic to make it work.
Any help would be greatly appreciated
