Code: Select all
on moveForward
if the name of the current card <> "the last card" then
visual effect push left
go next card
end if
end moveForward
on moveBack
if the name of the current card <> "the first card" then
visual effect push right
go prev card
end if
end moveBack
But it doesn't work that way. In essence, you can move forward or backward on any card, including the first and last cards which just cycle around. I added some code to show me the name of the card, just to make sure that it was being identified properly, and it was. So how come this swiping action does not "stop" on the first and last cards like I think it should? I am sure there is a simple answer for this. I've just been staring at it too long.
Thanks
ps changing the code to read "if the name of the current card is not "xxxx" then..." had no effect. It continued to behave as before.