function [stat,post] = blkswitch(path,prop,bstr,bint,bflt,parent,name)
%BLKSWITCH This block describes a switch that controls data flow from two input
%          vectors into a single output vector.
%
% See also

% Initial coding by A S Bozin, 6-12-97
% Copyright 1997-2000 The MathWorks, Inc.
% $Revision: 1.4 $ $Date: 2000/06/14 16:11:21 $

   stat = 0;			   		   % Error flag
   nInputs = bint(5);
   nOutputs = bint(6);
   %
   % Build mux and demux if necessary
   %
   channels = [1 nOutputs nOutputs];
   [post,rect] = blkio('port',channels,nOutputs,prop,path);
   %
   % Data path switch block
   %
   bh = add_block('libsb2sl/LOG/Switch',path,...
		  'ForegroundColor',prop.fgColor,...
		  'BackgroundColor',prop.bgColor,...
		  'Orientation',prop.orientation,...
		  'DropShadow',prop.border,...
		  'Position',rect);
   %
   % Connect the current block with the mux and demux blocks (if any)
   %
   blkio('line',channels,nOutputs,post,parent,name);
   return					   % Last card of BLKSWITCH
