Defining locals or constants

David Bovill david at openpartnership.net
Thu May 15 05:47:31 EDT 2008


Is there an easy way to do this type of thing:

constant WorldRadius = WorldConstant/pi

local LocalVar = WorldRadius * 2
>


That is initialise a local variable or constant to the result of a
calculation. I can use a "preOpenStack" message to trigger a script.... but
this is not always appropriate and clumsy - is there a simpler way?



More information about the use-livecode mailing list