Javascript problem when running function?

Here is my function:

<script type=“text/javascript”>
var unlockproperty = 1

function addigit() { unlockproperty=unlockproperty+1; }

if (unlockproperty > 1) {


and here is my input button that calls the function:

<input type=“button”
value =“add digit”

Here is the problem. When I click my “add digit” button, the function adds the digit to my “unlockproperty()” variable, however when “unlockproperty()” becomes greater than 1, nothing happens, even though it is supposed to open up to