how to used the boolean result from a script component process step?

I would like to use the boolean result of script component based process step to  one of the parameter value template (in the if clause) another email based script component process step

For example , if my boolean result is true I need to use it in a parametervalue of anothe process step (script componet based) to call one type of email template

                       else it needs to call another type of email templete