card.portalID(...)
card.portalID(posInteger) // id
The portalID function returns a portal from the specified card by its ID.