Difficulty with dynamic text boxes

Hi everyone,

I have searched everywhere but cannot find something similar to what I am trying to do. I want to make something where an object is controlled by pressing the arrowkeys (I can do that fine) and the location of the object is represented by numbers in dynamic text boxes - pressing right makes it’s x-axis number be shown as 1, pressing right again changes this to 2, and so on. Although that is ok, I would like the text boxes to change or become hidden when their values are zero or less than zero - can anyone explain how to do this?
I’ve attached what I’ve done so far - it’s fine when the x- and y-axis values are both positive, but for negative values or zero values I would like to alter it a bit, so that instead of showing y = (x-1)2 + -3 it shows y = (x-1)2 - 3
and similar things like that.
If anyone could explain how to do this to me or provide an example (I am very much a newbie at this), I would be very grateful. I’m hoping for something similar to this
http://staff.argyll.epsb.ca/jreed/math30p/transformations/trigonometry.htm
except with the location of the image controlled by the arrow keys instead of pressing buttons to change the numbers.

Thankyou!!