Retrieves a card from the list created with the push command, and either goes to that card or places its ID in a container.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
pop card [{into | before | after} container]
# Params
- container : A field, button, URL, or variable, or the message box.
# Examples
pop card -- go to the popped card
pop card after reverseListOfCards
# Description
If you do not specify a container, the pop command goes to the last card you placed on the list with the push command, and removes that card from the list.
If you specify a container, the long ID of the card is placed in the container and removed from the list. The current card doe not change.
If the list is empty when you use the pop command, LiveCode goes to the Home card. If you are running in the LiveCode development environment, this is the first card of the "license.rev" stack, which is the splash screen that appears when you start up LiveCode. (Click this card to close the stack.) If you are running in a standalone application, the Home card is the first card of the standalone application main stack.
# Tags
# See
- **keyword:** card - **constant:** return - **property:** ID - **command:** push - **object:** stack - **glossary:** development environment, current card, command, container, main stack, standalone application