Ok so I propably managed to solve this myself
global locate_Flag;
global aim_Flag;
global throw_Flag;
while(1)
locate_Flag = 0;
aim_Flag = 0;
throw_Flag = 0;
locate_Flag_temp = input('waiting for confirmation ');
locate_Flag = locate_Flag_temp;
clear locate_Flag_temp
if locate_Flag == 1
disp('located succesfully');
aim_Flag_temp = input('waiting for confirmation ');
aim_Flag = aim_Flag_temp;
clear aim_Flag_temp
if aim_Flag == 1
disp('aimed succesfully');
throw_Flag_temp = input('waiting for confirmation ');
throw_Flag = throw_Flag_temp;
clear throw_Flag_temp
if throw_Flag == 1
disp('threw succesfully');
end
end
end
end