Setting conditions api for selection