|
Just as you can store numeric variables, you can store string variables, which contain text instead of numbers. Here is an example:
word1$ = “Hello”
word2$ = “world”
sentence$ = word1$ + “ ” + word2$
writeInfoLine: “The whole sentence is: ”, sentence$
Yes, this is another way to get the sentence Hello world
into the Info window. It's a more linguistically valid way to do it, and here is how it works:
word1$
, which is a string variable (as we can see because its name ends in a dollar sign).word2$
.word1$ + “ ” + word2$
, which contains two variables, namely word1$
and word2$
.sentence$
.The whole sentence is: Hello world
© ppgb 20130411