Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeExplanationExamples
stringText is always in UTF-8, use double quotes "  "headline = "Microbizz script"
numberThe decimal point is . (full stop)price = 12.34
arrayThis is a comma seperated list of values, types may be mixed

myarray = [1, 2, 3,"Some text", [4, 5, 6]]

sometext = myarray[4]

dict

A list of key:value pairs, the syntax is much like the Javascript object syntax, or JSON.

Use double  quotes " for key names and textual values.  Keys are always strings.

peter = {name: "Peter", "age": 15, height: 160}

age = peter.age

age = peter["age"]

object

title = this.title

today = Date.date()

data

...