var channelexclude = [30,52,100-200 ] ;
Results in a three element array with values 30, 52, -100
----
Edit:
I don't know what the project requirements might be, but I would be tempted to write includeChannel() and excludeChannel() functions that do all of the dirty work. These functions could be called as needed to give local context to channel navigation. These functions would also keep things neat and tidy for the programmer.
Syntax could be:
includeChannel( 23 );
excludeChannel( 23, 50, 225);
excludeChannel( 5, "10-20", 63, "200+");
includeChannel( sports, cartoons, shopping ); (each of these items is an array)
Note that ranges are quoted. This is required because a non quoted range will be executed as a simple calculation.
Last edited by buzz on August 10, 2010 22:59.