Can I set any section of code to be foldable?

Hello, I see that “tell” blocks and “if” / “end if” constructs can naturally be folded and unfolded.

Can I do the same for any section of code that I choose ? For example, I would like to fold/unfold long and tedious sections defining variables. My current workaround is to surround them with a “if 1 = 1” / “end if” construct, but I find it quite inelegant.

Is there a simple, direct way to define in Script Debugger such sections ?

Thanks in advance. W.

Script Debugger can fold AppleScript blocks (if, repeat, tell, etc). It does not permit the folding of arbitrary sections of code.

Thanks for your reply.

It does permit the folding of arbitrary sections of code.

I assume that it is a typo and that you meant “does NOT permit”.

Yes, sorry for the error - I’ve corrected my reply.