Newb question, Objects
I know this will such a newb question
I have a Main OBJ and in that object I have several other objects that run and return in sequence, if I have an object that may have several outcomes that need to run different objects then return to the Main obj sequence. Like GOTO or GOSUB.
Main
start
power_up
check_for_input ' Here if there is no input then I want to goto power_down
"if there is input then I want to start_show
start_show
check_for_input 'Here if there is input then I want to start_show, if not then power_down
power_down
I have written this code in BasicSX and has run for couple of years, no I am trying to use the power of Propeller.
Thanks so much
Dr.Video
I have a Main OBJ and in that object I have several other objects that run and return in sequence, if I have an object that may have several outcomes that need to run different objects then return to the Main obj sequence. Like GOTO or GOSUB.
Main
start
power_up
check_for_input ' Here if there is no input then I want to goto power_down
"if there is input then I want to start_show
start_show
check_for_input 'Here if there is input then I want to start_show, if not then power_down
power_down
I have written this code in BasicSX and has run for couple of years, no I am trying to use the power of Propeller.
Thanks so much
Dr.Video
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Keep in mind that Spin does not have a GOTO or labels, but has a rich group of program control statements.