Web+ Tutorial

Previous

  Contents  

Next

Lesson 4.2 - Conditional Execution (webSelectCase...webCase...webCaseElse)

Description
Evaluates one of several statement blocks based on the value of an expression.
Syntax
<webSelectCase #testexpression#>
    [<webCase expression>
      [instructions]]
    [<webCase expression>
      [instructions]]
    [<webCaseElse>
      [instructions]]
</webSelectCase>

Agument
/tutorial/argument/arg15.wml
Example
<webSelectCase #choice#>
    <webCase "1">
      Alpha
    <webCase "2">
      Beta
    <webCase "3">
      Gamma
    <webCaseElse>
      Other!
</webSelectCase>

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