help

well i am trying to use the else/if function but i cannot find a way to make it stay at that number without me having to hold the button down