I must be missing something basic...

  if (varBtnPress = 1) {

== for comparison