make a system condition that compares two values, and then put
tilemap.TileAt(tilex,tiley)
To get the x and y tile position, there are also expressions where you provide a layout x,y coordinate to get the x,y tile position.
I think it is something like tilemap.PositionToTile(x)
so it would be something like
tilemap.TileAt(tilemap.PositionToTileX(x),tilemap.PositionToTileY(x))
Then in the second value use a value of the tile you want to check. I can't remember is the tile numbers start at 0 or 1, but they begin in the top left of the tilemap image.
You can check if it is -1 to see if no tile exists at that location.