Changes

Jump to navigation Jump to search
26 bytes added ,  17:26, 2 February 2020
Line 16: Line 16:  
* Multiline comments are not supported
 
* Multiline comments are not supported
 
==Example==
 
==Example==
  <nowiki>var words = ~[“hello”, “ ”, “world”];//Create an array
+
  '''var''' words = ~["hello", " ", "world"]; ''//Create an array''
if (5 < 10 < 20)//Always true
+
'''if''' (5 < 10 < 20) ''//Always true''
{
+
{
var result = “”;
+
'''var''' result = "";
foreach (word in words)
+
'''foreach''' (word '''in''' words)
{
+
{
result = result + word; //Concatenate the strings from the array
+
result = result + word; ''//Concatenate the strings from the array''
}
+
}
Debug(result);//Log the result
+
Debug(result); ''//Log the result''
}</nowiki>
+
}
 +
 
 
==Built-in functions==
 
==Built-in functions==
 
===Math functions===
 
===Math functions===

Navigation menu