Web+ Tutorial

Previous

  Contents  

Next

Lesson 4.4 - Looping (webWhile...webExitWhile)

Description
Repeats a group of instructions while a given condition is true.
Syntax
<webWhile #condition#>
    [instructions]
    [<webExitWhile>]
    [instructions]
</webWhile>

Example
<webSet #counter# = 0>
<webWhile #counter Lt 10#>
    <webPrint>#counter#</webPrint>
    <webSet #counter# = #counter + 2#>
</webWhile>

Exercise

You can try out some Web+ code of your own here.

Previous

  Contents  

Next

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com