Can I use an If statement inside the header file?

yes that was exactly what I was looking for thanks!