CRASH Radio

Latest YouTube Video

My Projects

"ZX Spectrum Next BASIC - Minimum/Maximum Variables with no IF statement"

This snippet I came up with keeps an incrementing variable between 2 numbers with no IF statement required:


10 %m[1]=50: %m[2]=100
20 %x=%x+1 AND (x<(m[2]-m[1])):%y=%x+m[1]
30 PRINT AT 0,0;" ";%y: PAUSE 10: GO TO 20

My Social Links