Else

From Game Editor

Jump to: navigation, search

If an expression used with if is false, the part after else will be executed.

FILE *fp = fopen("myfile", "r+t");
if(fp)
{
  strcpy(text, "The file exists.");
}
else
{
  strcpy(text, "The file doesn't exixst");
}
fclose(fp);
Retrieved from "http://game-editor.com/Else"