Page 1 of 1

Switches

Posted: Sun Mar 02, 2008 8:31 pm
by Kjell
Hello,

Are switches ( switch / case / break ) already implemented in the scripting language? When I type "switch" the text does become bold, but I haven't been able to get it to work yet.

Kind Regards,
Kjell

Posted: Mon Mar 03, 2008 2:21 pm
by VilleK
Nope, not implemented sorry. You need to use multiple if-then statements instead. ZDesigner use a standard component for syntax highlighting with the syntax from C++, so the highlighting is not 100% correct for the Z-expression language.

Posted: Mon Mar 03, 2008 7:14 pm
by Kjell
Hej VilleK,

No problem, as you mentioned, a series of IF statements will do the trick for now as well.

Kind Regards,
Kjell