Differentiating a substack from a mainstack
Scott Rossi
scott at tactilemedia.com
Wed Nov 20 16:18:37 EST 2013
I believe you could also check the owner:
if the owner of stack xyz is empty then
return "mainstack"
else return "substack"
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On 11/20/13 11:32 AM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:
>All stacks have a mainstack property. With a mainstack, its mainstack
>property will be its own name, so:
>
>if the mainstack of this stack = the short name of this stack then
> put "I'm a mainStack"
>else
> put "I'm a substack"
>end if
>
>
>--
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter: http://twitter.com/FourthWorldSys
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list