Ternary Operator Example in Axapta

This is Ternary Operator Example in Axapta. Its same as below if else condition results.

 str result;  
   result = (custTable::find("US-027").RecId) ? "found" : "not found";  
   info(result);  
   // Same as   


   if(custTable::find("US-027").RecId)  
     resut= "found";  
   else  
     resut= "not found";