not found or folder not found ?


const int RETURN_NOTFOUND = -1;
const int RETURN_FOLDER_NOT_FOUND = -8;

// ...

if (folderId > 0) {
	if (folderId > 0) {
		// do stuff ...
	} else {
		return RETURN_NOTFOUND; // TODO: return RETURN_FOLDER_NOT_FOUND
	}
}

Source : Github Gist