E2 help!

Hello everyone!, so today i was going to create a spaceship but i ran into some problems i can’t figure out myself!

if(User) {
    LeftTop = EGP:egpPos(1)
    RightBottom = EGP:egpPos(1) + EGP:egpSize(1)
    Cursor = EGP:egpCursor(User)
    if(inrange(Cursor, LeftTop, RightBottom)) {

This is my code wich should make a button on an EGP screen but it won’t work and i can’t understand why.
I hope i can get my question answered!

Thank you.

(User was banned for this post ("wrong section" - postal))