LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

bin$(button()) is great!

Root / General / [.]

KHypnoCreated:
I just found an amazing way to do multi-button input. Try this:
ACLS
WHILE 1
 PRINT BIN$(BUTTON())
 VSYNC
 CLS
WEND

You can also do multi-button input using the AND operator: 'Check L and R WHILE 1 IF BUTTON(1) AND (#L OR #R) THEN PRINT "L and R!" VSYNC WEND This works because the return value of BUTTON is a bitmask, that means every button has a single bit in the return value. The AND operator will return all the shared bits in both operands (&b1001 AND &b1011 == &b1001), and OR will return all the bits in both (&b1001 OR &b0110 == &b1111)

Tbh, you don't need to do exactly
?BIN$(BUTTON())
you can do just
?BUTTON()
or
?BUTTON(0)
BIN$ just makes it binary. It's what you put in () after BUTTON that effects that. Look at the help page for button.

Mid$()!!!

Mid$()!!!
what does that have to do with this?