pushcould you not simply write
pop
Of course I could, but I had never heard or seen push or pop before this thread.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
pushcould you not simply write
I get that. While I might have seen them before, I think I must have forgotten about them. Anyway, thanks to Jacques many contributions on this topic, I have finally found an almost elegant solution. At least it is relatively succinct.richmond62 wrote: ↑Thu Jul 22, 2021 6:52 pmpushcould you not simply write
pop
Of course I could, but I had never heard or seen push or pop before this thread.
Code: Select all
on mouseUp
-- check to see if the next card is in the UG list
put the recentcards into tList
put word 3 of line 2 of tList into string2
if "405764,405766,405768,405771" contains string2 then
go card "home"
else
go back
end if
end mouseUp
Very good suggestion. Thanks!jacque wrote: ↑Thu Jul 22, 2021 9:22 pmThat's how I would do it; ergo, I don't think it's inelegant.
If you ever add more non-UG cards to the stack you could push the current card before leaving for the UG, and then pop it in the Back button using your current script but substituting pop for the "go home" command.