I've recently started torque, and know the basics (functions, variables, loops, etc.) and couldn't find anything to practice on doing, although I'm not yet to the point where I can actually make anything.
Also, some code that I couldn't figure out why it wasn't working:
function speakToConsole(%words) {
echo("You said: " @ %words);
%words = strlwr(%words);
if(%words == "hello") {
echo("Hello to you too.");
} else if(%words == "bye") {
echo("Goodbye.");
} else {
echo("Sorry, I don't understand.");
}
}
It keeps returning "Hello to you too." no matter what I put as %words.