Alice Community  

Go Back   Alice Community > Alice 2 > Suggestion Box

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Suggestion - Switch case
Old
tumami
Junior Member
 
Status: Offline
Posts: 7
Join Date: Nov 2013
Location: Argentina
Lightbulb Suggestion - Switch case - 05-13-2014, 05:42 PM

Hello, i have an suggestion:

Implement the switch command. It is similar to "if/else".

Example using If/Else.

If students = 90
do anything

Else
If students = 80
do anything

Else
If students = 70
do anything

Else
if students = 60
do anything

Else
if students = 50
do anything

Example using Switch:

Switch students
Case 90: do anything
Case 80: do anything
Case 70: do anything
Case 60: do anything
Case 50: do anything

and down of the last case, a button to add a new case.

Its a good idea?
Attached Images
File Type: jpg switch.jpg (11.6 KB, 9 views)


Argentina !
   
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.