ANSWER:
Going for condolences is permissible and part of upholding ties of kinship which is rewardable. You can spend 5-10 minutes reminding them to be steadfast. One must not gather with others or visit them at a specific time where all come and visit and gather in one place for condolences.