"if" statements for eventDataChat