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
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