if(strcmp(cmdtext,"/b", true) == 0){ //whatever /b does}if(strcmp(cmdtext,"/o", true) == 0){ //whatever /o does}