Hardware manual
Impact Reference Guide Commands and Functions E-H
5-13 Datalogic Automation Inc.
ERROR 3
ERROR$ ()
This function returns a string describing the most recent error. Example:
error_string = ERROR$()
ERROR$ (n)
This function returns a string describing error number "n." Example:
error_string = ERROR$ (10)
EVEN()
This function returns a True or False value based on whether the argument is an even or odd number. If the
argument is undef, the result is undef. Example:
check_it_bool = EVEN(2) yields check_it_bool = True
EXIT FUNCTION
This command causes an immediate return from a user-defined function. Any code after the Exit is not exe-
cuted. Example:
FUNCTION MyFunction(var1, var2, var3)
REM function code goes here
EXIT FUNCTION
REM This code will not get executed
END FUNCTION
EXIT SUB
This command causes an immediate return from a user-defined subroutine. Any code after the Exit com-
mand is not executed. Example:
SUB MySub(Var1,Var2, Var3)
REM subroutine code goes here
EXIT SUB
REM This code will not get executed
END SUB
EXP()
This function returns the x-th exponent of the argument. If the argument is undef, the result is undef. Exam-
ple:
z = EXP(0) yields z = 1
FALSE
This built-in function has no arguments. It always returns the value False. Example:
myresult_bool = FALSE yields myresult_bool = False