Okay, I found the answer to my own question after reading a book on using Cocoa. Here is what I did:
int i = application.applicationIconBadgeNumber;
int y = 0;
NSLog(@"The result is %@", (y<i ? @"True" : @"False"));
if(i)
{
NSLog(@"App Badge is Greater Than 0");
}
else
{
NSLog(@"App Badge is Equal To 0");
}
You put that under - (void)applicationDidBecomeActive:(UIApplication *)application. This code compares the app's icon badge and then sees if it is greater than y (0 in my case) and returns a true or false depending on what the badge number is. Hope this helps someone else out!
Edit: Read the post above. It has a much more simple version of this code.