Difference between revisions of "WML for Complete Beginners: Chapter 8"
m (Added link to the next chapter of WML_for_Complete_Beginners (Chapter 9)) |
(→Chapter 8: Array, and Container Variables) |
||
Line 13: | Line 13: | ||
Container variables are not restricted to containing scalar variables, however. They can also store array variables. | Container variables are not restricted to containing scalar variables, however. They can also store array variables. | ||
+ | Next Chapter: | ||
[[WML for Complete Beginners: Chapter 9]] | [[WML for Complete Beginners: Chapter 9]] | ||
+ | |||
+ | Previous Chapter: | ||
+ | [[WML for Complete Beginners: Chapter 7]] | ||
+ | |||
+ | Return to Main Index: | ||
+ | [[WML for Complete Beginners]] | ||
[[Category:WML_for_Complete_Beginners]] | [[Category:WML_for_Complete_Beginners]] |
Revision as of 09:16, 10 November 2015
Chapter 8: Array, and Container Variables
So far we have only discussed scalar variables, i.e. variables that have only one value at any given time. Believe it or not, there are types of variables than can store more than one value simultaneously, or even other variables.
Array Variables
Container Variables
Container variables are variables that contain other variables within themselves. Returning to the metaphor of boxes, let's say you had three small boxes, labeled "Apples", "Oranges", and "Pears", respectively. Instead of having to carry around three smaller boxes, wouldn't it be much easier if we could just put them all in one large box labeled "fruit"? Well, with container variables, you can!
Container variables are not restricted to containing scalar variables, however. They can also store array variables.
Next Chapter: WML for Complete Beginners: Chapter 9
Previous Chapter: WML for Complete Beginners: Chapter 7
Return to Main Index: WML for Complete Beginners