To summarize my site in quick detail.
It uses application.cfc's onRequest and includes my site template.
I was adding something to a page today involving a ternary if and wrote this
#(CurrentID eq SCANFORID ? " selected")#
Saved the file and left for a bit. This is just on my testing server so no harm.
I came back to an error telling me [[Invalid conditional operator}} occurring in the template handler file on the line that includes the file.
Obviously it was easy to fix, find the ternary in my file and change it to
#(CurrentID eq SCANFORID ? " selected" : "")#
Windows 10, IIS 2017 (v1709)
I've analyzed this ticket & Confirmed lucee throw error "invalid conditional operator" While we missed the else segment. But I think that Lucee behaviour is expected, without else part in ternary operator it should throw error. ACF also does same as Lucee. Any way micha will confirm this.
The error is valid, but Lucee is misreporting where it’s ocurring at, instead citing the line that includes the erring file.