[SOLVED] how to put an if statement with multiple actions

Hi everybody,

Following code is not working:

if({code} <7)

{
$year = date(‘Y’, strtotime(“now”));
{{cus_code} = {customer_id} . ‘-’ . $year;

}

IT SAYS:

Parse error: syntax error, unexpected '?> ’ …

Tried placing php tags, not successful.

Thanks for helping.

Ok it’s solved.