< Rexx Programming < How to Rexx
To assign a number to a variable, we use the equal sign (=). The left side names the variable, and the right side contains a value or an expression, potentially including other variables.
x = 3 y = 5 z = x * y /* z is now 15 */
It doesn't even just have to be numbers. Any string or valid expression is allowed.
greeting = "Hello" audience = "world" sentence = greeting"," audience"!" say sentence
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.