Difference between revisions of "Z^3 Language Documentation"

From ZCubes Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
===Switch Statement Notations===
 
===Switch Statement Notations===
  
{| align=center cellpadding=0 cellspacing=0 style="background:transparent;"
+
how to make this work?
|UNIQc5f845eebe0d3e63-pre-00000002-QINU
+
b=0;
|}
+
fruits="mango";
 +
fruits:::
 +
{
 +
        "apple","tomoto"::
 +
        {
 +
                b++
 +
          },
 +
"mango"::
 +
        {
 +
                b=345;
 +
                ; // this empty statement makes it fall through.
 +
            },
 +
        default::
 +
        {
 +
                b=45.6;
 +
            }
 +
}
 +
b;

Revision as of 08:44, 22 June 2016

Operators

Logical Constructs

Switch Statement Notations

how to make this work?

b=0; fruits="mango"; fruits::: {

       "apple","tomoto":: 
       	{
               b++
          	},

"mango"::

       	{
               b=345;
               ; // this empty statement makes it fall through.
           },
       default::
       	{
               b=45.6;
           }

} b;