if clause for liked event