To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE Programming Environment documentationWhen-Is statements

When-Is statements are similar to the switch/case statements found in other languages like Java or Visual Basic. The do keyword is entirely optional as well.

YASS
when($a)
  is 0 do
    //Do something when $a = 0
  is 1 do
    //Do something when $a = 1
  is 2 do
    //Do something when $a = 2
  otherwise do
    //Do something when $a is something else
end when
  
Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.