Fandom

Livecode Wiki

Introduction of the language script

1,968pages on
this wiki
Add New Page
Comment1 Share

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
*/

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.