Page 1 of 1

push and pop -- access to the 'last' card?

Posted: Wed Apr 17, 2013 4:41 am
by leston12
I have a couple of cards that each navigate to the same (third) card.

In the scripts that go to that card, I use 'push card' to store where I came from. Then I use 'pop card' to go back.

I want slightly different behavior based on which card I am coming from. The most obvious and simplest way would seem to utilize the list that 'push' and 'pop' use and just check the card on the top of the list. I can't find anything in the documentation to indicate this is possible. Is that list available ... Anyone know?

I know that I could set a custom prop somewhere but if this information is already stored by the system (which it is) and is accessible (that's my question), why duplicate it?

Thanks in advance.

Re: push and pop -- access to the 'last' card?

Posted: Wed Apr 17, 2013 5:12 am
by Dixie
Leston...

'Push' & 'pop' will do what yow wish... but wanting to get the name of the card, have a look at 'recentcards' in the dictionary...

Dixie

Re: push and pop -- access to the 'last' card?

Posted: Wed Apr 17, 2013 5:27 am
by leston12
That's what I was looking for. Thanks Dixie!

BTW ... Seems curious that the recentCards property is not in the 'See Also' section of the Push and Pop entries in the Dictionary.