Using null command

Hi guys I am using the null in order to make a jump script i want the code to be referred to as null when a bool value = false, but my problem is I always get the same error of it asking to put a semicolon, i put one and it asks for another and etc. I have my code below

I think you’re a little confused. null is not a command. It’s a value. Specifically, it means “No value”.

What it looks like you’re trying to do is set your variable equal to null, but this probably won’t give you the result you’re after. If you’re trying to delete the gameobject, you should call Destroy (gameObjectToDestroy);

@Kishotta No sorry I am not trying to delete the gameobject I am trying to make it so that if something activates in a another code it renders a certain strip of code useless