I have two variables
char command[3][10] {"ignore", "start", "stop"};
and
char dataReceived[10];
The idea is to be able to compare any one of the three commands to the value stored in dataReceived. I have this
if (dataReceived == command[0]) // ignore
{
// do something
}
if (dataReceived == command[1]) // start
{
// do another thing
}
if (dataReceived == command[2]) // stop
{
// do something altogether different
}