Help needed with this if-statement!

@TushaarKOBO, try this:

if((${tubewell}=1),${y1},${y2})

This post discussed previously should also help you provide an idea on how to use the if-statement: