My idea is for all compilers it is Break Command with optional lable
This is current Break in a body of a sub or function
Code: Select all
result = $FF
for i = 0 to 180 ' Wait for hi
if DHT2_Data then
result=0
break
end if
next i
if result = $FF then exit end if ' Bad sensor "we need this step since we lost the knowledge of result and get here in all cases
Code: Select all
result = $FF
for i = 0 to 180 ' Wait for hi
if DHT2_Data then
result=0
break (Good_Sensor)
end if
next i
exit ' Bad sensor
Good_Sensor:
. the rest of code go here for good sensor
.