error in test contion

Richard Gaskin ambassador at fourthworld.com
Sat Nov 2 17:05:05 EDT 2013


Dr. Hawkins wrote:

> On Sat, Nov 2, 2013 at 11:07 AM, Richard Gaskin wrote:
>>
>> This should work:
>>
>> put ( (the prgVrsn of stack "mcp") <> progVersion) into t1
>>
>       put  progVersion
>       put ((the prgVrsn of stack "mcp") <> progVersion) into t1
>       ck "t1 is " & t1
>       --      if ((the prgVrsn of stack "mcp") <> progVersion) then
>       if t1 then
>
> the logger shows that,
>
>       t1 is true
>
> yet I still get error
>
> executing at 1:41:29 PM
> Type    if-then: error in statement
> Object    mcp
> Line    if t1 then
> Hint    openMcp

Have you double-checked the value of the prgVrsn property?

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list