Okay, so i've been trying to solve this for an hour now and I have to resort to a forum post. I don't understand why this isn't working.
I have two background images that scroll up,right,left and down with arrow keys. They also scroll to the left while no arrow keys are being used.
What I want is the background images to reach a boundary, so the player never leaves the background image and sees the stage.
My background image x,y coordinates by default are: x(223.0), y(272.4)

Just to see if my condition works, I have it move the wisp(player). However, even in the debug screen when it shows the Y coordinate of backround image go below 170, it never moves the wisp.

Code:
if (backgroundimage._y<170){
	wisp._x=400;
}


What could I possibly be doing wrong?