Odd scripting problem

Hendrik van Eeden hvaneeden at comcast.net
Sun Mar 13 12:39:21 EDT 2016


You need an end if after the else.

Henk



> On Mar 13, 2016, at 12:16 PM, George Handley <ghandley at kc.rr.com> wrote:
> 
> Hi again James,
> 
> Well, I stripped the parens out and put the argument on one line as I originally started, and now it says I have too many “if”s.
> 
> I can’t win!
> 
> Do you, or anyone see why this script below won’t compile?
> 
> Thanks again,
> 
> George
> 
> 
> <For List 3 3-13-16.jpg>
>> On Mar 13, 2016, at 7:42 AM, James Sentman <james at sentman.com <mailto:james at sentman.com>> wrote:
>> 
>> 
>>> On Mar 12, 2016, at 9:10 PM, George Handley <ghandley at kc.rr.com <mailto:ghandley at kc.rr.com>> wrote:
>>> 
>>> It used to work with 584, but now with 625 and 627, one way I write it tells me that it “Can’t turn Mr. & Mrs. Handley” into a boolean. If I write it the way below, it tells me:
>>>  “OAS Error -2741: Expecting a “then”, etc. but found unknown token.” 
>>> 
>> 
>> 
>> 
>> I can see one syntax error that definitely will keep it from compiling in any XTension version.
>> 
>> the line that says:
>> 
>> if (status “Tennis Flag”)) then
>> 
>> has an extra end paren. Remove that and see what happens. In this case no parens are necessary at all, you can just write:
>> 
>> if (status “Tennis Flag”) then
>> 
>> but I’m not sure that any parens are necessary at all there really. If they help you visualize whats happening where then they certainly can’t hurt but it will run just fine as:
>> 
>> if status “Tennis Flag” then
>> 
>> 
>> 
>> 
>> Thanks,
>>  James
>> 
>> 
>> James Sentman                       http://www.PlanetaryGear.org <http://www.planetarygear.org/>		http://MacHomeAutomation.com <http://machomeautomation.com/>
>> 
>> 
>> 
>> _______________________________________________
>> XTensionList mailing list
>> XTensionList at machomeautomation.com <mailto:XTensionList at machomeautomation.com>
>> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20160313/12ca1d16/attachment.html>


More information about the XTensionList mailing list