If you have diarrhea, it is advisable to avoid eggs because they can be hard to digest and may worsen symptoms. Instead, opt for plain, easily digestible foods like rice, boiled potatoes, and bananas until symptoms improve.