Return from user defined block


#1

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
}


#2

Yup, change the if test to:

my_block() {
{
    if (mbot is on black) {
        mbot move straight
    }
}

#3

hello
i am new here and running a holiday packages website.
thanku


kerela tour packages for couple


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.