Which control mechanism?

Blitz3D Forums/Blitz3D Beginners Area/Which control mechanism?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok I have my network chat program working nicely. Now i want to add more functionality.

At the moment i have code like

if chat$="/who" then
print_list_of_users()
else
send_chat_to_network(chat$)
endif

howver i now want to check for chat starting /tell and /ver and i am sure a load more commands.

What should i use? (nested IF...Then.. or CASE or something else?)


Thanks