Learn how to do some more advanced tasks using strings and for loops.
This page was published over 7 years ago.
Please be aware that due to the passage of time, the information provided on this page may be out of date or otherwise inaccurate,
and any views or opinions expressed may no longer be relevant. Some technical elements such as audio-visual and
interactive media may no longer work. For more detail, see how we deal with older content.
Image 'Process for using a string within a 'for' loop. First process statements before the for loop. Then initialise the counter to 0. Test: is the counter equal to the length of the string? If it is not, process the current character (accessed by using ChatAt()). Increment the counter by this value and test again. If it is now equal to the length of the string, carry on with statements after the for loop.' - under Creative-Commons license
Image 'Your First Program' - Copyright: Dreamstime
Image 'Variables and Data Types' - Copyright: Dreamstime
Image 'Operators' - Copyright: Dreamstime
Image 'Getting Data From a User and Displaying Results' - Copyright: Dreamstime
Image 'Booleans and the Comparison Operators' - Copyright: Dreamstime