contains or is in

Brian Yennie briany at qldlearning.com
Fri Apr 1 15:38:59 EST 2005


>   --if myAlias contains ".exe" or ".app" then
>   if ".exe" is in myAlias or ".app" is in myAlias then
>     set the cmyFolder of the target to "app"
>   else if myAlias contains "." then -- haven't figured out how to tell 
> if it is a file yet

else if (there is a file myAlias)

>     set the cmyFolder of the target to "file"
>   else

else if (there is a folder  myAlias)

>     set the cmyFolder of the target to "folder"
>   end if

HTH,

Brian



More information about the use-livecode mailing list