So, I've the following bit of code written in bgt.
if(event.type==event_receive)
{
tone.play();
voice.speak(event.message);
if(event.message=="1")
{
force_key_down(KEY_SPACE);
}
}
The first if statement is triggering fine for me, but the second one is not. I've tried removing the quotes and it's still the same result. Am I doing something wrong here?
This is the network object in BGT.