Hybridizing if else statement

By using hybridblock I wrote-

def hybrid_forward(self, F, x):
    if F.mean(x) < 1: 
        return x
        return x - 1

While hybridizing it shows error, that bool is not implemented for Symbol.
Is there a way to implement control flow like in above example. Or how to implement a model with data depending forward propagation in gluon.
I know how to use mx.symbol.where but I want to build it using gluon and then hybridize the model.

It is a duplicate question, answered here: Hybridizing if elif and else statements in Gluon