R
if
if else
for
apply()
lapply()
sapply()
mapply()
tapply()
break
next
while
repeat
function()
...
#
In the example below, the expression is only executed if the condition that is being tested is TRUE.
expression
condition
TRUE
if (condition) { expression }
Note that when the condition is FALSE, nothing happens and the program carries on to the next step.
FALSE