From Stephanie.Mahevas at ifremer.fr  Tue Mar  6 18:15:21 2007
From: Stephanie.Mahevas at ifremer.fr (Stephanie.Mahevas at ifremer.fr)
Date: Tue,  6 Mar 2007 18:15:21 +0100 (CET)
Subject: [Rd] parse error with if else (PR#9551)
Message-ID: <20070306171521.CC6C25D5F7@slim.kubism.ku.dk>

Full_Name: Stephanie MAHEVAS
Version: 2.4.1
OS: Windows NT
Submission from: (NULL) (134.246.55.50)



the two following instructions provide a synthax  error :

if ( 5 > 4 ) cat("ok1")
else cat("ok2")

and

if ( 5 > 4 ){ cat("ok1")}
else cat("ok2")

whereas these ones don't

if ( 5 > 4 ) cat("ok1") else cat("ok2")

and

if ( 5 > 4 ){ cat("ok1")
}else cat("ok2")

It looks like a parser problem. If else is not on the same line as if or if the
end of block statement of if } is not paste to else, else does not seem linked
with if



[Rd] parse error with if else (PR#9551)
Stephanie.Mahevas at ifremer.fr