Simkin Data Types


These are the Simkin data types:

TypeDescriptionExample
selfa reference to the object owning the scriptself.field="Hello";
booleana truth valuetrue or false
integera signed number32
floata signed floating point number32.33
charactera single character.Use "\" to quote characters'm', '\''
stringan arbitrary length piece of text.You can embed any text except ".To use " put a slash and then a quote \"."He said \"Goodbye\" and left."
booleana true or false object representedfalse or true, 0 or 1
objectanother Simkin object with methods and fieldsMyObject
XML elementan XML element object<element><subelement>Value1</subelement></element>
TreeNodea TreeNode Object
 label [data] 
 {
  child_label [child_data]
 }

There are some built-in functions which are used with these types:

Variables are used without declarations. The type of a variable is implied by its value, and Simkin will convert to different types as required.

For example:

name="Simon";
value=4;
trace(name+value);
will produce:
4
and
trace(name # value);
will produce
Simon4