% Generic example

  % Assign logical values to some variables:
  test1 = 1;  
  test2 = 1;
  test3 = 0;

  % If test1 is true and test2 is true and test3 is true, 
  % display something.
  % Otherwise, if test1 is true and test2 is true and test3 is false,
  % display something else:
  
  if test1
    if test2
      if test3
	disp('This will not display.');
      else
	disp('This will indeed display!');
      end
    end
  end
  
  