SQLITE_NOTICE(283): recovered 20 frames from WAL file /data/mtt.fossil-wal

File mttroot/ntt/bin/trans/mttSetFieldDefault.m artifact 5626026953 part of check-in 4db48d7400


function structure = mttSetFieldDefault(structure,component,value)
    undefined = 0 ;
    if isfield(structure,component)
        undefined = isempty(getfield(structure,component)) ;
    else
        undefined = 1 ;
    end
        
    if undefined
        structure = setfield(structure,component,value) ;
    end


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]