Single Line if/else Statement

A B C D E
1 23 123      
2 >C1=A1 if B1>C1 >C1=B1  
3 24 21      
4 if A3>B3 >C3=A3 else >C3=B3

After executing, the cell values in C1 and C3 are as follows: