calculates the conditional sum of real vector entries
function conditionalSum input Real vec[:]; input Boolean con[:]; output Real conSum; end conditionalSum;