Intermec PM23c Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 28
Using Conditional Instructions, Using an IF...THEN...[ELSE] Instruction, Using an IF...THEN...[ELSE
View all Intermec PM23c manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 28 highlights
Chapter 2 - Understanding Fingerprint Syntax • DELETE Remove program lines using the DELETE statement in Immediate mode. Both single lines and ranges of lines in consecutive order can be deleted. • RENUM Program lines can be renumbered to provide space for new program lines, to change the order of execution, or to make it possible to MERGE to programs. Line references for GOSUB, GOTO, and RETURN statements are renumbered accordingly. For debugging the program, use STOP, DBBREAK, DBBREAK OFF, DBSTDIO, DBSTEP, DBEND, or CONT commands. For more information, see "Breaking Program Execution" on page 26. Using Conditional Instructions Conditional instructions control the execution based on whether a numeric expression is true or false. Fingerprint has one conditional instruction, which can be used in two different ways. Using an IF...THEN...[ELSE] Instruction If a numeric expression is TRUE, then a certain statement should be executed, but if the numeric expression is FALSE, optionally another statement should be executed. This example allows you to compare two values entered from the keyboard of the host: 10 INPUT "Enter first value ", A% 20 INPUT "Enter second value ", B% 30 C$="1:st value > 2:nd value" 40 D$="1:st value second value" 40 D$="First value < second value" 50 E$="First value = second value" 60 IF A%>B% THEN PRINT C$ 70 IF A%