Tuto WEBDEV 25
Part 13: The WLanguage basics 443 • Several code lines can be run during the process corresponding to an expression value. In this case, the following syntax must be used: SWITCH <Expression> CASE Value 1: Process 1 - Code line 1... Process 1 - Code line 2... CASE Value N: Process N - Code line 1... Process N - Code line 2... OTHER CASE Process ... END Practical example: Using the IF and SWITCH statements To use the conditional instructions we have just studied, we will create the following page: Two operations can be performed: • If the user clicks the check box, the "Close" button is displayed. • If the user clicks the "Test" button, the box checked in the check box is displayed. Project used To handle the different concepts of this lesson, we are going to create different pages. These pages will be created in the "My_First_Pages" project. ▶ Open the "My_First_Pages" project if necessary. 1. Display the WEBDEV home page (Ctrl + <). 2. Click "Tutorial", then "My first pages (Exercise)".
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==