function out = testScript(a,b,c,d)
%UNTITLED2 Summary of this function goes here
%   Detailed explanation goes here

% Bedingung 1 
if((a < b) && (a < c))
    out = a;
    return;
end

if ((b == c) && (a ~= d))
    out = b;    % or c
    return;
end

if ((a == c) || ( b == 0))
    out = 0;
    return;
end

% wenn nix zutrifft 
out = 42; 

