function out=ifprintf(test,varargin)
% ifprintf <Conditional print>
% Usage:: out=ifprintf(test,varargin)
%

% revision history:
% 09/28/91 Mark D. Shattuck <mds> ifprintf.c
% 03/22/03 mds convert to matlab ifprintf.m

%% Main

if(test)
  out=fprintf(varargin{:});
else
  out=0;
end


