last card

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

last card

Post by Preston Shea » Sun Mar 29, 2009 10:39 pm

What is the correct way to say:

if this is the last card then

thanks
In nova fert animus mutatas dicere formas corpora.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Sun Mar 29, 2009 10:54 pm

The number property is your friend:

if the number of this cd = the number of cds of this stack then...
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Mon Mar 30, 2009 12:28 am

you could also check some property of the last card, as in:

Code: Select all

if  the id of the last card = the id of this card then
but i too like the number way of saying it better
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply