Hi,
Sorry for the late reply. The issue is that R4 'executes' all code it finds unless it is in square brackets. For an 'if' statement you don't want to execute both the 'true' and the 'false' bits, you want to pass them, unexecuted, into the 'if' so that it may choose what to execute - so you must use square brackets.
Hope that helps...