getBooleanLogicFromField.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% (Any) => (boolian logic)
% Get boolean logic from a struct or return the input.
function output = getBooleanLogicFromField(field)
if isstruct(field)
if strcmp(field.Text, 'true')
output = true;
else
output = false;
end
else
output = field;
end
end