bitvoicer with arduino issues

hello, no idea if this message is in the right place but…

i have bitvoicer installed and working, it hears me and says it has sent to command but the arduino does nothing. just trying a simple program to try get it working. what am i doing wrong??

#include <BitVoicer11.h>

BitVoicerSerial bvSerial = BitVoicerSerial();

void setup()
{
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
}

void loop()
{
bvSerial.getData();

if (bvSerial.strData = “light on”);
{
light_on();
}
if (bvSerial.strData = “light off”);
{
light_off();
}
delay(50);
}

void light_on()
{
digitalWrite(LED_BUILTIN, HIGH);
}

void light_off()
{
digitalWrite(LED_BUILTIN, LOW);
}

How do you know that the hardware connections are good? What pins are you using for the serial connection?

the arduino is good, have tested it with the blink example. have got the arduino connected with usb. all im trying to do is get the arduino to turn on the on board led with voice control. the bitvoicer program is set up and using the same port and when i say light on its happy and sends the string “light on”. arduino is happy when i varify the code but then nothing happens not even an error :S

if (bvSerial.strData = "light on");

C mistake #1.
Comparison is ==
And #2
No semicolon after if.

That, and not using code tags (forum mistake #1)

thank you awol, i knew it would be a school boy error lol. been about 5 years since i did computer science at uni. am a bit rusty relearning code and arduino lol :wink:

DieDamYou666:
the bitvoicer program is set up and using the same port

What port? The same port as what?