380Example: For 2 → I To 10_If I = 5_Then ”STOP” : Stop_IfEnd_NextThis program counts from 2 to 10. When the count reaches 5, however,it terminates execution and displays the message “STOP.”kkkkk Jump Commands (JUMP)DszFunction: This command is a count jump that decrements the value of a controlvariable by 1, and then jumps if the current value of the variable is zero.Syntax:Parameters:Variable Name: A to Z, r,θ[Example] Dsz B : Decrements the value assigned to variable B by 1.Description:This command decrements the value of a control variable by 1, and then tests(checks) it. If the current value is non-zero, execution continues with the nextstatement. If the current value is zero, execution jumps to the statement followingthe multi-statement command (:), display command (^), or carriage return (_).Example: 10 → A : 0 → C :Lbl 1 : ? → B : B+C → C :Dsz A : Goto 1 : C ÷ 10This program prompts for input of 10 values, and then calculates theaverage of the input values.Goto~LblFunction: This command performs an unconditional jump to a specified location.Syntax: Goto ~ Lbl Parameters: Value (from 0 to 9), variable (A to Z, r,θ)Description:1. This command consists of two parts: Goto n (where n is a value from 0 to 9)and Lbl n (where n is the value specified for Goto). This command causesprogram execution to jump to the Lbl-statement whose value matches thatspecified by the Goto-statement.20- 11 Command ReferenceVariable Value GGGGG 0 _Dsz : : ^Variable Value = 0Downloaded from www.Manualslib.com manuals search engine