Interpretation of BASIC line

36 Views Asked by At

I have had to OCR an old bit of BASIC code which contains this line:

A BASIC line of code

which I have interpreted as:

10140   FOR K = 1 TO NS: FOR J = 1 TO NN:A%(CJ%(J),S%(K)) = 1 * (A%(CJ%(J),S%(K)) = 1 OR A%(CJ%(J),N) = 1): NEXT J,K

I thought I knew BASIC way back when, but I am confounded by what's happening after the second colon.

Could it be conversion of a boolean into an integer by multiplying it by "1" ?

0

There are 0 best solutions below