Switches

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1879
Joined: Sat Feb 23, 2008 11:15 pm

Switches

Post 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
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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.
User avatar
Kjell
Posts: 1879
Joined: Sat Feb 23, 2008 11:15 pm

Post 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
Post Reply