Can anyone see why this isn't working?

Set Variable %UPDATE% to "0"
If %UPDATE% Equals "0" Then
#set compiler variable [PRODUCTNAME] = "New Install"
Else
#set compiler variable [PRODUCTNAME] = "Upgrade"
End

TIA

Mike