STRIG ON must be executed before any STRIG(n) function calls may be made. Once STRIG ON is executed, GW-BASIC will check to see if a button has been pressed before every statement is executed. STRIG OFF disables the checking.
x is a numeric variable for storing the result.
n is a numeric expression within the range of 0 to 7 that returns the following values:
Value of n
-1 if trigger A1 was pressed since the last STRIG(0) statement; returns 0, if not.
-1 if trigger A1 is currently pressed; returns 0, if not.
-1 if trigger B1 was pressed since the last STRIG(2) statement; returns 0, if not.
-1 if trigger B1 is currently pressed; returns 0, if not.
-1 if trigger A2 was pressed since the last STRIG(4) statement; returns 0 if not.
-1 if trigger A2 is currently pressed; returns 0, if not.
All Frank Sinatra recordings, All Beatles albums, All solo albums from John Lennon, Paul McCartney, George Harrison and Ringo Starr, All Beatles songs, List of Platinum selling albums, Database with hits from 1950 to 1999.
Sought after DLL files, Nutworks magazine (retro), Worldwide ISO and TLD codes, File extensions database, The Hackers dictionary, Free software for the Atari, Amiga and Macintosh, Nokia smartphone, PocketPC, List of all BASIC programming language commands, List of all DOS commands, Free Advanced Bash-Scripting Guide (Linux-Unix)