if($action) { #Bond the built-in and accessory components to the parent. if($action eq "BOND") { #### for my $acc (@acc) { ... if ($current_status->{"curr_parent_id"} != 0) { print "Refusing to modify the status of demstock $acc. It has already been moved
\n"; } else { ... } ##
## for my $acc (@acc) { ... if ($current_status->{"curr_parent_id"} != 0) { print "Refusing to modify the status of demstock $acc. It has already been moved
\n"; next; } ...