Am 04.09.2012 21:05, schrieb Marco Patzer:

if true then;
   print("true")
else;
   print("false")
end

This snippet fed into a standalone Lua interpreter prints “true” on
the terminal.

I admit, I did not look up the syntax in the manual, but I have in
mind that semicolons can be used to separate statements that are on
one line.

voss@shania:~/ConTeXt> lua zzz.lua
lua: zzz.lua:1: unexpected symbol near ';'

voss@shania:~/ConTeXt> lua -v
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio

Herbert
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to