"[range[1000,1099]] [range[2760,2770]]""[range[1100,1299]] 2000 2001 2007 2009"
<$vars pre="[range[" sfx="]] " mynum="1200">
<$list filter="[tag[CBD]get[range]addprefix<pre>addsuffix<sfx>]" variable="ranges">
<$list filter="[subfilter<ranges>suffix<mynum>prefix<mynum>]">IN RANGE</$list>
</$list>
</$vars>Thanks for that suggestion, and the juggling to test for a value. Since I expect users to update it, the range when. Setting a single value will need to be hidden from them.
You have made me think that a data tiddler for each group eg CBD may work.
I discovered an inconsistency in the data which makes me question if I will need to validate the data before or on update which makes it a little more complex like detect an overlapping range.
I do know australia post offers postcode selection tools, perhaps I should look there.
Lets see if there are more ideas.
Thanks
Tony
I would be inclined to expand each list of postcodes and put them in a list field. This would allow really simple search code and the resulting tiddler would not be all that large.
I know this was not your challenge, but just saying...
Mal
S S ,A Form of Binary search? Nice algorithm.
. . .