Changing a bool when an int reaches a specific number...

I need to know how to change the state of a bool once an int reaches a specific number. Here is my current code:

		if(killCounter = 10) {
			weapon.hasWorm = false;
			weapon.hasDazzler = true;

I am currently getting this error:

Assets/Scripts/Weapons and Pickups/killCount.cs(16,17):
 error CS0029: Cannot implicitly convert type `int' to `bool'

I need urgent assistance if possible.

Thanks in advance!

Just change it to:

//note the comparison operator is two assignment operators '='
if(killCounter == 10)

I should really elaborate. A single ‘=’ is for assigning a value to something, whist a double ‘=’ is for comparing two objects (returns true/false).