Menu

Twenty year old VBScript project: need help finding the "IF" to an "ELSE"
📰
0

Twenty year old VBScript project: need help finding the "IF" to an "ELSE"

Reddit r/webdev·u/mapsedge·about 1 month ago
#hhJYJhTF
#help#else#code#gist#didn#article
Reading 0:00
15s threshold

I have a single function of close to 900 lines. (No, I didn't write it.)

There is an errant "else" clause that I can't locate the "if" for. The code runs, so it has to be in there, right?

I've been over the code a half dozen times, and I can't locate it. AI is no help: I've fed the code to four different models and they're all, "Yes, you're right. An if needs an end if. Would you like help with the syntax?" Even wrote a quick one-off in python to strip anything that isn't an if, else, or end if and then automatically indent/de-indent line by line, and that didn't help either.

I've gone through the VSCode extensions, I've looked online, and I would think there'd be a tool for matching that sort of thing up, but I can't find one. Help, please?

GIST: https://gist.github.com/mapsedge/024841a282df946659bc080f631b47ec

Read More