When using the scripting/navigation code provided by Kevin Watson, u would call a switch statement with the following parameter:
Code:
command_list[current_command].command
I want to have different scripts.
Code:
int check_switch_box(void)
{
if(rc_dig_in01==1)
return command_list_1[current_command].command;
}
So theoretically, i could call
Code:
switch(check_switch_box()){}
instead of
Code:
switch(command_list[current_command].command){}
?
That should work, right? Since command_list[current_command].command really is just a value inside a struct.