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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DEC and INC FunctionsDECINCFormat:Where:numberExamples:subtract one from a numeric string expression and return the result.adds one to a numeric string expression and return the result.dec(number)inc(number)number to be operated on.Display the results of incrementing “5”:eFT> text Increment 5 = {inc(5)}eFT: Increment 5 = 6Assume the variable CNT exists and has a value of 12. The value of CNT minus one can be displayed as follows:eFT> text New cnt = {dec(cnt)}eFT: New cnt = 11This procedure did not change the actual value of CNT; it only displayed the decremented value. To decrementthe value of the variable CNT, use the SET VARIABLE command as shown:eFT> text cnt = {cnt}eFT: cnt = 12eFT> set variable cnt {dec(cnt)}eFT> text cnt = {cnt}eFT: cnt = 11REF-eFT213-R<strong>5.4</strong>-08 Advanced Local User’s Guide Page 73

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

Saved successfully!

Ooh no, something went wrong!