Page 1 of 1

last card

Posted: Sun Mar 29, 2009 10:39 pm
by Preston Shea
What is the correct way to say:

if this is the last card then

thanks

Posted: Sun Mar 29, 2009 10:54 pm
by FourthWorld
The number property is your friend:

if the number of this cd = the number of cds of this stack then...

Posted: Mon Mar 30, 2009 12:28 am
by BvG
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