I want to use if else in lambda function in tvm.compute

It seems that I have to use tvm.select which is not friendly for programmers, is there any suggestion?

you may use hybrid script @were