From jens.lund@nordea.com  Wed Oct 10 17:18:40 2001
From: jens.lund@nordea.com (jens.lund@nordea.com)
Date: Wed, 10 Oct 2001 18:18:40 +0200 (MET DST)
Subject: [Rd] Whitespace matters in else construct (PR#1125)
Message-ID: <200110101618.SAA01758@pubhealth.ku.dk>

Full_Name: Jens Lund
Version: 1.3.1
OS: Windows
Submission from: (NULL) (194.239.194.210)


Whitespace matters in else constructions; a newline does not seem to be allowed
in front of else:

# Valid input examples
if (F) {
  print(T)
} else print(F)

if (T) print(T) else print(F)

if (F) {print(T)
} else print(F)

# Invalid input examples
if (F) {
  print(T)
}
else print(F)

if (F)
  print(T)
else print(F)

> version
         _              
platform i386-pc-mingw32
arch     x86            
os       Win32          
system   x86, Win32     
status                  
major    1              
minor    3.1            
year     2001           
month    08             
day      31             
language R              

Best regards, Jens


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Whitespace matters in else construct (PR#1125)
jens.lund@nordea.com