Try if:

if(event_type == event_click)

alone works, just to begin to narrow down where the problem is.