Jump to content

Rewriting this IF


MrAdam
 Share

Recommended Posts

hi. im struggling to create an if statement using "!" to make it the oppsite sort of thing.here's what i have at the moment:

	if (curX >= left && curX <= fmRight) {		// nothing to happen here	} else {		element = document.getElementById('menu');		element.parentNode.removeChild(element);	}

that works fine! .. but.. i don't want to have an else init. i've tried adding an "!" here:

... if !( ...

... but it just said error when i tried to run it?can anybody help?- thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...