Variables

The following script presents examples of internal types.

var a = 42;//integer
var b = 3.14;//float
var c = "string";//character string
var d = [1,2,"a","b"];//list (notice that list may contain different types of elements)
d[0];//prints 1
d[2];//prints "a"
var e = ["a"=>1,"b"=>2];//dictionary
e["a"];//prints 1
var f = nil;//neutral value (means nothing, fits anywhere)
void;//absence of value (fits nowhere), you can not write var g = void;

More examples you can find in the URBI documentation LINK.

 

 

EMYS and FLASH are Open Source and distributed according to the GPL v2.0 © Rev. 0.8.0, 27.04.2016

FLASH Documentation