Skip to content

The Mwnci Scripting Language

Mwnci push() Function

Syntax

push(array, value)

Description

The push() will add the assigned value to the end of the named array. The return value will be the updated array.

Example

a=[1,2,3,4]
a=push(a,5)
println(a)
[1, 2, 3, 4, 5]

Index

  • What is MSL?
  • MSL Operators
  • MSL Compound Statements
    • foreach
    • function
    • if
    • switch
    • while
  • Mwnci Comments
  • Mwnci Variables
  • Mwnci Arrays
  • Mwnci Hashes
  • Built-in Functions
  • Mwnci Includes
    • Included Main Functions
    • Included String Functions
    • Included Math Functions
    • Included File Functions
    • Included Process Functions
    • Included Password Functions
    • Included Group Functions
    • Included Shadow Password Functions
    • Included Network Functions
  • The Mwnci REPL (console)
  • Examples
The Mwnci Scripting Language Proudly powered by WordPress