if (function)

Can some one explain how the below function evaluates, appreciate your help in advance!!

if(true, false, false, true, false, 30, 40) 

 Discussion posts and replies are publicly visible