On 2012-09-04 Herbert Voss <herbert.v...@fu-berlin.de> wrote:

Hi Herbert,

> > \starttext
> > \startluacode
> >    if true then;
> >      context("true")
> >    else;
> >      context("false")
> >    end
> > \stopluacode
> > \stoptext
> 
> that is no Lua syntax

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.


Marco

___________________________________________________________________________________
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