-->
Page 1 of 1

Timer branching error (V2)

PostPosted: Fri Apr 08, 2016 1:05 pm
by Electroguard
The Timer Example fails for me with an unknown branch error.
I tried using a different simplified branch name, but still gives a branching error.
Is timer duration [branch] broken in ESP Basic 2.0.Alpha 7, or has the syntax changed?


Code: Select allTimer Example

    timer 5000 [do.some.stuff]
    print "going to do some stuff in a bit"
    button "Click me to exit" [Exit.ThisThing]
    wait

    [do.some.stuff]
    print "Doing Some Stuff"
    wait
    ​
    [Exit.ThisThing]
    end

Re: Timer branching error (V2)

PostPosted: Sat Apr 09, 2016 1:31 am
by Mmiscool
timer command is different now.

old syntax
Code: Select alltimer 10000 [branch]


new syntax
Code: Select alltimer 10000, [branch]

Re: Timer branching error (V2)

PostPosted: Sat Apr 09, 2016 6:18 am
by Electroguard
Ta.
Did the additional comma just creep in unwanted, in which case it is likely to dissapear again in a future version?
Or is there a reason the comma was added as an additional delimiter, and does it similarly change the syntax of any other commands?

Re: Timer branching error (V2)

PostPosted: Sat Apr 09, 2016 8:15 am
by Mmiscool
It was required to make an expression able to be used for the timer duration.