go to post Oleksandr Baranyuk · Jun 2, 2020 Obviously, a complex condition cannot produce simple code. I do this in that way: set val1 = 1 set val2 = 2 set val3 = 3 w $SELECT( (val1>=3)&&(val1<=9): $SELECT( val2=0:"Condition 1", val2>0:"Condition 2"), val2=1:$SELECT( val3<3:"Condition 3", 1:"Condition default 1" ), val2'=1:$SELECT( (val2>1) && (val2<9):"Condition 4", 1:"Condition default 2" ) ),! It's more clear and readable.