You are here: Elements > Decoder Script Reference > END_MAIN_PATH

END_MAIN_PATH

The mandatory END_MAIN_PATH statement marks the end of the main sequence of executable statements (roughly the equivalent of the "main program" in many programming languages). For each layer, executable statements will be processed starting at the first that appears and stopping when END_MAIN_PATH is reached. Any statements that appear after the END_MAIN_PATH will be processed only if referenced by a BRANCH or by a FIELD statement of the form "FIELD <name>;". By the same token, any statements that play the role of subprograms should be placed after the END_MAIN_PATH.