exit from a called method????
ardillo
Posts: 4
hi!!! i'm trying to figure out how can i exit from a called subroutine
ex.
pub main :·index | local_varible
· dira [noparse][[/noparse]0..3]~
· repeat
···· local_veriable := ina [noparse][[/noparse]0]
···· if local_variable == 1··········· ' vdd
······ slave_method
pub slave_method |local_variable_1
<what ever is here>
··· if local_variable_1 == 1
{{ i want to exit slave_method, return to main and wait for the condition in input [noparse][[/noparse]0] to be true}}
·
ex.
pub main :·index | local_varible
· dira [noparse][[/noparse]0..3]~
· repeat
···· local_veriable := ina [noparse][[/noparse]0]
···· if local_variable == 1··········· ' vdd
······ slave_method
pub slave_method |local_variable_1
<what ever is here>
··· if local_variable_1 == 1
{{ i want to exit slave_method, return to main and wait for the condition in input [noparse][[/noparse]0] to be true}}
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Help to build the Propeller wiki - propeller.wikispaces.com