Is there a way to return from an execution of a user defined block?
such as
my_block () {
if ( mbot is not on black )
rerturn
else
mbot move straight
}
Is there a way to return from an execution of a user defined block?
such as
my_block () {
if ( mbot is not on black )
rerturn
else
mbot move straight
}
Yup, change the if test to:
my_block() {
{
if (mbot is on black) {
mbot move straight
}
}
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.