KR-216* REXX Day 5 (operators and obtaining user input)
We have all the regular mathematical operators. Some others (which are represented differently in each programming language) are:
String concatenation can also be done without specifying the pipes as well.
Obtaining user inputs
KR-217* DAY 6 of REXX (strictly equal and arrays)
Before continuing we need to take a look at a special comparison operator that REXX provides (which many other languages do not): ¤ The operator = = means check if strictly equal while \= = is used for strictly not equal check. ¤ Strictly equal checks for equality of spaces and the casing of the value where normal equal (single =) does not check for these.
To uninitialize the entire array we can use the statement:
DROP STATE.
(there is a period after STATE to denote that this is an array).
Guess why 15 is displayed again in the above snippet?
To make variables within a subroutine/function as local then use the PROCEDURE keyword.
Passing argument
Copyright © 2020 Sethu Subramanian All rights reserved. Reach me via email at ssbell @ gmail.com