Uncertainty evaluation in algorithms with conditional statements