Skip to main content

getBooleanLogic.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% (Any) => (boolian logic)
% Get boolean logic or return the input.


function output = getBooleanLogic(text)

if strcmp(text, 'true')
output = true;
elseif strcmp(text, 'false')
output = false;
else
output = text;
end
end