recentCards
Type
property
Summary
Reports the long ID properties of recent cards|recently visited cards.
Syntax
get the recentCards [of <stack>]
Description
Use the recentCards property to find out which cards the user has visited, or to re-visit a card.
The recentCards are listed in reverse order, with the current card at the top of the list, the most recently visited card next, and so on. Each visit to a card causes its ID to be placed at the top of the list, even if the same card appears elsewhere in the list. The recentCards thus provides a complete track of the visitor's navigation.
Cards visited while the lockRecent property is set to true are not added to the list.
Examples
do "go" && line 2 of the recentCards -- equivalent to "go recent 2"
Value
Name | Type | Description |
---|---|---|
value | The recentCards is a list of long ID properties of cards, one ID per line. If a stack is specified, the list contains only the recent cards in the specified stack. If not, all recent cards are listed. |
Related
command: unlock recent
glossary: recent cards, property, current card
object: card
property: ID
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile