Use an expression in a conditional statement

Found this, but noticed it is deprecated since RM provides similar functionality?