Ionic compounds do not conduct electricity when solid.

However, ionic compounds do conduct electricity if molten or in solution.