Details
Assignee
Michael OffnerMichael OffnerReporter
Adam CameronAdam CameronPriority
MinorLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Adam Cameron
Adam CameronPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 11 November 2022 at 13:01
Updated 1 May 2024 at 06:51
Reproducing this from Slack.
Repro:
i=1 do { x = randRange(1,10) if (x > 5) { continue } writeOutput(x) } while(++i <= 10)
Error on Lucee:
Syntax Error, Invalid Construct
If one puts a semi-colon after the
continue
, it works. It works as one would expect on CF.https://trycf.com/gist/063a476b5ab7d0e67300fab8e2e55802/lucee5?theme=monokai
I know
continue
can take a label. But the label can't start with a}
. Looks to me like it doesn't occur to Lucee that}
can be considered the end of the previous statement, as much as;
could be, so there might (?) be broader issue here. Although I hasten to add thatcfcontinue
does NOT need a semicolon, in the same situation.Not a big deal to me - but figured you should know / it should be searchable if it happens for anyone else.