Ternary operator works same as IF- ELSE
(Condition)?(true)(statement):(false))statement2;
checks the condition if it is true it executes the statement , else it executes the statement2
Learn to Develop an iPhone or iPad App in 4 Weeks Learn the latest and greatest markup language in the market with Robin Nixon(HTML & HTML5) Now $29 Only(75% Off)
Ternary operator works same
Wed, 06/18/2008 - 02:56 — adminTernary operator works same as IF- ELSE
(Condition)?(true)(statement):(false))statement2;
checks the condition if it is true it executes the statement , else it executes the statement2