I wanted to compare a string without actually defining one of them as a string, something like this,
if (string == \"add\")
Do I have to de
You need to use strcmp.
strcmp
if (strcmp(string,"add") == 0){ print("success!"); }