CODE
switch (blah_in)Just working on some simple code, this statement would greatly help in creating some more flexible and simple programs that a large multi-tiered IF ELSE block would complicate. This would also be useful if the switch() statement only supported integers.
{
case "hello":
blah_out = "Hi, how are you?";
break;
case "bye":
blah_out = "Thanks for stopping by!";
break;
default:
blah_out = "I'm sorry, I did not understand that";
}
I would also like to see some way to store data within an object (for example, inside a text-file or other data file that could be contained in the objects inventory).
Thanks
