# exrs5.r example if then else print("R exrs5.r running") # the normal comparison == != >= <= < > # the normal logical && || n = 2 if(n == 2) { print("n == 2") } if(((n < 3) && (n > 1)) || n != 3) { cat("n=",n,"\n") } if(n <= 0) { print("n <= 0") } # else ??? error # { # print("n positive") # } print("exrs5.r finished")