Quote:
if (selection==yes)
{ select-all-channels }
else
{ select-current-channel }
Quote:
if (num_selected_channels > 1 && selection == entirety_of_those_channels)
{ select-all-channels }
else if (num_selected_channels > 1)
{ select-all-of-those-channels }
else
{ select-current-channel }