Another question about variables

jbv at souslelogo.com jbv at souslelogo.com
Sun May 1 09:15:21 EDT 2016


Hello again,

Please take a long at the following script :

on mouseUp
   if myVar is empty then
      answer 1
   else
      answer 0
   end if

   put 1 into myArray[1]
   put 1 into myArray[2]

   if myArray[3] is empty then
      answer 1
   else
      answer 0
   end if

   if myArray1[3] is empty then
      answer 1
   else
      answer 0
   end if
end mouseUp

Is there any logic explanation why it answers "0" for myVar
and "1" for myArray and myArray1 ?

Thanks
jbv





More information about the use-livecode mailing list