These are the Simkin data types:
Type | Description | Example |
---|---|---|
self | a reference to the object owning the script | self.field="Hello"; |
boolean | a truth value | true or false |
integer | a signed number | 32 |
float | a signed floating point number | 32.33 |
character | a single character.Use "\" to quote characters | 'm', '\'' |
string | an 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." |
boolean | a true or false object represented | false or true, 0 or 1 |
object | another Simkin object with methods and fields | MyObject |
XML element | an XML element object | <element><subelement>Value1</subelement></element> |
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:
4and
trace(name # value);will produce
Simon4