How do I invert the logic in this statement? outa[x] := ina[y]
Don M
Posts: 1,652
I have the statement outa[5] := ina[19] where I look at input 19 logic level and I pass that on to output 5.
So when input 19 is high then output 5 goes high. But what if I want when input 19 is low then output 5 goes high and when input 19 is high output 5 goes low.
How do I invert the logic in that statement?
It's part of a repeat loop where it's looked at all the time
So when input 19 is high then output 5 goes high. But what if I want when input 19 is low then output 5 goes high and when input 19 is high output 5 goes low.
How do I invert the logic in that statement?
It's part of a repeat loop where it's looked at all the time
repeat outa[5] := ina[19]
Comments
Thanks anyway if you were going to reply!
Bits of information like this are very valuable to me.
I've placed a fair bit of time into understanding spin.
Small items like this help alot.