When I simulated the program it gives me an error
code python(part of main program):
if okLeft: #random.randrange(2):
resultLeft = "OK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 1, True)))
else:
resultLeft = "NOK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 1, False)))
if okRight: #random.randrange(2):
resultRight = "OK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 2, True)))
else:
resultRight = "NOK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 2, False)))
return resultLeft,resultRight, imagenesProcesadas
////
error:
else:
^
IdentificationError: unexpected indent
//
if u can help me to resolve this problem
code python(part of main program):
if okLeft: #random.randrange(2):
resultLeft = "OK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 1, True)))
else:
resultLeft = "NOK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 1, False)))
if okRight: #random.randrange(2):
resultRight = "OK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 2, True)))
else:
resultRight = "NOK"
print("Result of writing MB0="+str(prosim.writeFlagValue(0, 2, False)))
return resultLeft,resultRight, imagenesProcesadas
////
error:
else:
^
IdentificationError: unexpected indent
//
if u can help me to resolve this problem