Page 1 of 1

if last card of stack then

Posted: Thu Apr 11, 2013 8:24 pm
by herbwords
this script is in a button on all cards that ascends to the last card of stack "inventory". I'm trying to get to card "inventory1" in another stack if the current card is the last card of the "inventory" stack.

on mouseUp
if this cd is last cd of stack "inventory" then
go to cd "inventory1" of stack "invControl"
else
go next
end if
end mouseUp

any suggestions appreciated,

Patrick

Re: if last card of stack then

Posted: Thu Apr 11, 2013 8:43 pm
by dunbarx
Hi.

I would have written this as:

if the number of this cd = the number of cds

And do you need to put this in a button? Why not in the stack script, in an openCard handler? Although maybe you want to navigate manually.

Craig Newman