When aircraft fly inside clouds, they fly under instrument rules. It doesn't matter whether the visibility is reduced (at night) or totally blocked (in a thick cloud), this mode of flying simply assumes the crew has no external visual reference, they fly solely using indications given by on-board instruments.