how do I subtract 2 lives?

Hey guys! I wonder if it’s possible to subtract 2 lives when you get hit by one bullet. if it is possible please show me =)

Thanks!

if (gotHitByBullet) lives -= 2;

You need to define what gotHitByBullet is.

thanks!