Login  Register

Re: Error - cant get around! Expected ;

Posted by Cseresnyes, Zoltan on Jun 29, 2011; 1:11pm
URL: http://imagej.273.s1.nabble.com/Error-cant-get-around-Expected-tp3684050p3684063.html

True, I didn't read the entire command.  Actually, the snippet lastly posted by the original poster (lines 10-22) runs just fine as it is.  We need indeed to see the whole macro!

Zoltan



-----Original Message-----
From: Johannes Schindelin [mailto:[hidden email]]
Sent: Wed 6/29/2011 14:58
To: Cseresnyes, Zoltan
Cc: [hidden email]
Subject: Re: Error - cant get around! Expected ;
 
Hi,

On Wed, 29 Jun 2011, Cseresnyes, Zoltan wrote:

> You can't break a line like this:
>
> if (prepost=="Other") {
> Dialog.create("Time");
>
> It should be in one line:
>
> if (prepost=="Other") {Dialog.create("Time");

You can break a line like this. Just try this little snippet:

        if (1 == 1) {
                write("Hi");
        }

Ciao,
Johannes