Is this dandruff??

When i scratch my head there’s always white stuff under my nails? You can’t really see it in my hair i guess it’s just on my scalp and only comes up when i scratch it? Does anyone know what it is? How to stop it? My hair isn’t dirty when it happens either.