You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: HeteroAgentStationaryEqm_Case1_EntryExit_subfn_condlentry.m
    path of file: ./repos/VFIToolkit-matlab/HeterogeneousAgent/EntryExit
    
    the code of the file until where you have to start completion: function CondlEntryDecision=HeteroAgentStationaryEqm_Case1_EntryExit_subfn_condlentry(p, n_d, n_a, n_z, pi_z, d_grid, a_grid, z_grid, ReturnFn, FnsToEvaluate, GeneralEqmEqns, Parameters, DiscountFactorParamNames, ReturnFnParamNames, FnsToEvaluateParamNames, GeneralEqmEqnParamNames, GEPriceParamNames, EntryExitParamNames, heteroagentoptions, simoptions, vfoptions)

    
function CondlEntryDecision=HeteroAgentStationaryEqm_Case1_EntryExit_subfn_condlentry(p, n_d, n_a, n_z, pi_z, d_grid, a_grid, z_grid, ReturnFn, FnsToEvaluate, GeneralEqmEqns, Parameters, DiscountFactorParamNames, ReturnFnParamNames, FnsToEvaluateParamNames, GeneralEqmEqnParamNames, GEPriceParamNames, EntryExitParamNames, heteroagentoptions, simoptions, vfoptions)
% Is just a copy-pase of HeteroAgentStationaryEqm_Case1_EntryExit_subfn(),
% which just outputs Parameters.(EntryExitParamNames.CondlEntryDecisions{1}) instead of usual
% output of p_eqm. Have removed bunch of lines of code that are not
% required as a result.

%% I'm being lazy, this should be outside the subfn, and just the needed parts passed to the subfunction (would be faster that way)
if isfield(heteroagentoptions,'specialgeneqmcondn')
    if isstruct(GeneralEqmEqns)
        GECondNames=fieldnames(GeneralEqmEqns);
        jj=1;
        for ii=1:length(GECondNames)
            if isnumeric(heteroagentoptions.specialgeneqmcondn{ii}) % numeric means equal to zero and is a standard GEqm
                jj=jj+1;
            elseif strcmp(heteroagentoptions.specialgeneqmcondn{ii},'condlentry')
                CondlEntryCondnEqn=GeneralEqmEqns.(GECondNames{ii});
                temp=getAnonymousFnInputNames(GeneralEqmEqns.(GECondNames{ii}));
                % The first entry of CondlEntryCondnEqnParamNames must be the value function
                CondlEntryCondnEqnParamNames=temp(2:end