Your First Script

LiveCode scripts are simliar to PHP scripts. They are text files that contain a mix of html content and embedded code segments that are then executed whenever the page (script) is viewed in the browser.

LiveCode scripts start with <?lc and are terminated with ?>. Each script can contain any number of these embedded segments.

E.g if you type the following script out, or paste it into your text editor, save and then call the file in your browser, you will see the famous words: Hello World!

<html>
<head>
<title>Sample</title>
</head>
<body>
<?lc put "Hello World!" ?>
</body>
</html>

Leave a Reply