Test Variable?
Garrett Hylltun
garrett at paraboliclogic.com
Fri Feb 10 17:52:34 EST 2006
On Feb 10, 2006, at 2:47 PM, Sarah Reichelt wrote:
>> How do I test whether a variable is null or not?
>>
>
> Null as in not yet initialized?
>
> Try this:
> if myVar is empty then ....
Null as in empty, but already initialized onOpenStack. What I'm
trying to accomplish is that if a text file path is sent to my .app
on OSX, that when my program opens, it grabs the command line and
puts it into a variable. onOpen field needs to test if the variable
has anything at all in it, if it does, then take the path and open
the file and put it in the FieldEditor.
Would
if myVar is not empty then..
work?
Thanks,
-Garrett
More information about the use-livecode
mailing list