iif.m
function out = iif(cond, a, b)
%IIF implements a ternary operator
if cond
out = a;
else
out = b;
end
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.
Generating citation ...
Generating citation ...
function out = iif(cond, a, b)
%IIF implements a ternary operator
if cond
out = a;
else
out = b;
end