Trouble with 'there is a'

Devin Asay devin_asay at byu.edu
Thu Jan 26 17:15:59 EST 2012


Graham,

The problem is you're embedding a partial 'if' structure in your statement. Leave out the 'if':

   put (there is a folder (the defaultFolder))

HTH

Devin

On Jan 26, 2012, at 3:13 PM, Graham Samuel wrote:

> I'm  using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). I'm getting unexpected results from the 'there is..' series of functions/commands - the dictionary says they're implemented as functions, which I can understand.
> 
> As a very simple test, in the message box I put:
> 
>   put (if there is a folder (the defaultFolder))
> 
> expecting to get 'true'. Instead I get the totally unexpected result:
> 
>   161,426,1,return (if there is a folder (the defaultFolder))
> 
> I suppose it's my fault, but what does this mean? Just to be clear, 'the default folder' does have a value - it's:
> 
>  C:/Program Files/RunRev/LiveCode 5.0.2
> 
> Puzzled
> 
> Graham
> 
> _______________________________________________
> 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University







More information about the use-livecode mailing list