I am working through the 'Ultimate Starter Kit" for my Raspberry Pi 3+. In Chapter 16 the tutorial shows how to work with a stepper motor.
Note: The program works per the tutorial -
I just cannot understand how the following line is working:
GPIO.output(motorPins[i],((CCWStep[j] == 1<<i) and GPIO.HIGH or GPIO.LOW))
motorPins is a four-element array with a hex number in each element.
How is this line evaluated?