Section - EndSection
section
…
endsection
The FISH language does not have a “GOTO” statement. The section construct allows control to jump forward in a controlled manner.
The statements section … endsection may enclose any number of lines of FISH code; they do not affect the operation in any way. However, an exit section statement within the scope of the section so defined will cause control to jump directly to the end of the section.
Any number of these jumps may be embedded within the section. The endsection statement acts as a label, similar to the target of a GOTO statement in C or FORTRAN. The logic is cleaner, however, because control may not pass to any place outside of the defined section, and flow is always “downward.”
Was this helpful? ... | 3DEC © 2019, Itasca | Updated: Feb 25, 2024 |