I would like to use switch case like I can use it in Java in ivyScript. But I get validation errors if I use it. Do I have to take care about a special syntax?

asked 10.02.2011 at 05:53

Lars%20Winnat's gravatar image

Lars Winnat
(suspended)
accept rate: 0%


Unfortunately switch case is not supported by ivyScript. Please help yourself with if else:

int i = 0;
if (i == 0)
{ }
else if (i == 1)
{ }
else
{ }
link

answered 10.02.2011 at 06:06

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×52
×33

Asked: 10.02.2011 at 05:53

Seen: 2,499 times

Last updated: 10.02.2011 at 05:53