In my patch I want to display some text in a symbol each time a certain number is retrieved from an array.
ie. tabread array
if it's a 0 then display CAT
if it's a 1 then display DOG
if it's a 2 then display PIG
I've always done this with a big SELECT and loads of messages underneath.
I can see it would be prettier to create lots of symbols containing these words, with receive symbols like animal1, animal2 etc and then send a bang to animal$1. The problem with this is you still have to LOADBANG all the symbols each time. Also, if you want the destination to be chageable then you need to hook all those symbols up to a SEND.
Are there some more efficient ways to deal with this?