Conditional statement within a pymc3 model

Could you post the solution code? I am not sure what is meant by multiply by the boolean…

Thank you!