Purely imaginary number is a complex number which has only imaginary part ( iy)
But if y=0 the complex number iy will become 0 which is real.
Hence the condition for a number to be purely imaginary is x=0 and y≠0