11.07.2015 Views

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Logical OperationsThe following is a list of the operators for numerical equivalence tests:EQNELTGTLEGEFormat:Where:tests if the first number is equal to the second number.tests if the first number is not equal to the second number.test if the first number specified is less than the second.test if the first number specified is greater than the second.test if the first number specified is less than or equal to the second.test if the first number specified is greater than or equal to the second.eq(number1, number2, if_true [, if_false ])ne(number1, number2, if_true [, if_false ])lt(number1, number2, if_true [, if_false ])gt(number1, number2, if_true [, if_false ])le(number1, number2, if_true [, if_false ])ge(number1, number2, if_true [, if_false ])number1, number2if_trueif_falseExamples:numbers to be compared.a string expression whose value the function takes if the test is successful.an optional string expression whose value the function takes if the test fails. If thisargument is omitted, the function takes on the value of a null string.Ask the user to enter a number between 1 and 10:eFT> ask -prompt “Enter a # (1-10): ” num1eFT: Enter a # (1-10): 10Check if the number is less than or equal to 10:eFT> text {le(num1,10, “Good”, “Bad”)}eFT: GoodCheck the number for proper entry as defined in the first example, if it is between 1 and 10:eFT> text {ge(num1,1,le(num1,10, “Good”, “Bad”), “Bad”)}eFT: GoodREF-eFT213-R<strong>5.4</strong>-08 Advanced Local User’s Guide Page 81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!