Differentiating a substack from a mainstack

Richard Gaskin ambassador at fourthworld.com
Wed Nov 20 14:32:39 EST 2013


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




More information about the use-livecode mailing list