The @ NOTE statement does not perform any action. It is used to insert comments in EDT procedures. Lines which contain a @NOTE statement can also be branched to by means of @GOTO. The @ CONTINUE statement offers the same functionality as @ NOTE.
Operation | Operands | L mode |
@NOTE | [comment] |
comment
The comment
operand may contain any text as a comment.
Alongside the insertion of comments, this statement is also frequently used to define a last line in an EDT procedure which can be specified as the destination of a branch operation in a @GOTO or an @IF statement. This construction is required if an EDT procedure is called in an external loop with a loop counter (e.g. @DO 5,!=%,$), and an @IF ... RETURN would result in an unwanted abort of the external loop. Instead, processing branches to the end of the procedure in order to start the next pass.
Example
6. @PRINT 1.0000 WITH EDT 2.0000 ANYONE WHO KNOWS 3.0000 THE STATEMENTS CAN 4.0000 WRITE HIS PROGRAM 5.0000 PROCEDURE AT A TIME 6. @PROC 1 1. @1.00 1.00 @ @NOTE OBJECTIVE: IF A LINE CONTAINS A 'W' ------------------- (1) 1.01 @ @NOTE DISPLAY IT ON THE SCREEN 1.02 @ @ON ! FIND 'W' 1.03 @ @IF .FALSE. : @GOTO 2 1.04 @ @PRINT ! 1.05 @2.00 2.00 @ @NOTE ------------------------------------------------------- (2) 2.01 @END 6. @DO 1,!=1,$ --------------------------------------------------- (3) 1.0000 WITH EDT 2.0000 ANYONE WHO KNOWS 4.0000 WRITE HIS PROGRAM 6.
(1) | In this case, @NOTE is used to insert a comment. |
(2) | In this case, @ NOTE is required because there must be a last line in a procedure that can be branched to. |
(3) | @DO with a loop counter executes the procedure in work file 1 which acts on work file 0. |