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)
bin$(button()) is great!
KHypnoCreated: