あと、16も0以外なので、真と判定されるはずです。 B=button(2) If (B==16)==1 then A=A+1 でも、 B=button(2) If (B==16)==16 then A=A+1 でも、 B=button(2) If (B==16)==true then A=A+1 と同じことになるはずです。