In Rust, if can be used as an expression that returns a value. The condition is evaluated first. If true, the value from the if block is returned; if false, the else block's value is returned. Both branches must return the same type. This allows assigning the result of the if expression directly to a variable. For example, checking if a number is even or odd and storing the string result in a variable. The execution table shows the condition evaluation, branch taken, and the value assigned. The variable tracker shows how 'result' changes from uninitialized to the final value. This approach makes code concise and clear.