06-22-2017, 08:35 PM
In the original BASIC listing I was using it as a memory/time-saving way of selecting a colour based on the value of a variable.
e.g.
PRINT INK 1+(val<5);val
So if val>=5 the message prints in ink 1, but if it's less than 5 it becomes ink 2. Obviously this doesn't work out so well if the value is suddenly 255 instead of 1 or 0.
e.g.
PRINT INK 1+(val<5);val
So if val>=5 the message prints in ink 1, but if it's less than 5 it becomes ink 2. Obviously this doesn't work out so well if the value is suddenly 255 instead of 1 or 0.
