//I use Brads example here. #define TASKID_THISACTION 84278346 if(task_exist(TASKID_THISACTION)) { //Do your stuff }