pop | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Retrieves a card from the list created with the push command, and either goes to that card or places its ID in a container. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Keyword: card Constant: return Property: ID Command: push Object: stack Glossary: development environment, current card, command, container, main stack, standalone application | ||||||
Description | Use the pop command to return to a card whose location you have previously stored. 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's main stack. | ||||||
Tags | navigation |