[Coco] Basic09 question

Bruce W. Calkins brucewcalkins at charter.net
Fri Mar 28 06:39:24 EDT 2008


>I seem to remember(in my old memories) there was a way to use IF/THEN in a 
>way that would:
>
> use GOSUB, line1,line2,line3.. etc. when comparing an input from the user.
> For example:
>
> input"Choices", answer
> if answer = "whatever1" then gosub 1 \endif
> if answer = "whatever2" then gosub 2 \endif
>
> This is clunky.
>
> The thing that is in my head is that there was a way to make it do it all 
> in one small segment instead of a whole buch of IF/THEN tests.
>
>
> Does this make sense?
>
>
> Thanks,
>
> George

Yes, I remember such a list based IF/THEN routine.  Not that I can remember 
the details and what with school confusing my CoCo BASIC with "Power Basic" 
and C I have to dig out some books, etc. for those details and that ain't 
gonna happen today.

Bruce W. 




More information about the Coco mailing list