Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
SIPL
(view source)
Revision as of 17:26, 2 February 2020
26 bytes added
,
17:26, 2 February 2020
→Example
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===
Khornel
Bureaucrats
,
Interface administrators
,
Administrators
768
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version