Code:
If is <> was Then
  was = is
  If is = 1 Then
    go do something
  EndIf
EndIf