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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to