Livecode Wiki
Advertisement

The LiveCode language is very similar to English, for example for setting a variable "myVar" to 2 you write:

put 2 into myVar

Ok, it's very lengthy; but it works very well and easy to understand.

Setting an object property require another word set:

set the location of graphic myDraw to 20,30

Operation function priority is used as human way, so this is correct:

2 + 3 * 5 * cos(3.14) - 1/3

Loops or function declaration don't use parenthesis but newline char and end word, see this example:

repeat 5 times
 answer "test"  
end repeat

attention the next example doesn't work since there aren't newlines:

repeat 5 times   answer "test"  end repeat

Comments are made with the "#" char, lines starting with # are ignored, may also use:

-- to start a line,

or /*        */ to bracket a set of comments:

# Hello, I'm a comment 
-- another comment
/* a block of comment
h ;jh 'ijh poh
*/
Advertisement