Event coordinates withour using variables

Is possible to get event coordinates without using variables? and put it in conditional branch?

I mean something like that:

event.id[1].py <= 5
 
I use these identifiers when I'm looking to see if the event's x, y equals the player's x, y

$game_map.events[id].x

[SIZE=13.3333px]and[/SIZE]

$game_map.events[id].y
I use these identifiers when I'm looking to see if the event's x, y equals the player's x, y

$game_map.events[id].x

[SIZE=13.3333px]and[/SIZE]

$game_map.events[id].y
Thank You it works like charm 😉 !

Original thread: https://forums.rpgmakerweb.com/threads/event-coordinates-withour-using-variables.45500/