Section EndSection

section

endsection

The FISH language does not have a “GO TO” statement. The section construct allows control to jump forward in a controlled manner. The statements sectionendsection 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 GO TO 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.” Sections may not be nested; there may be many sections in a function, but they must not overlap or be contained within one another.