its a ternary operator e.g. boolean-exp ? value0 : value1

if vIsForm is NOT NULL then vIsForm is "form"
else                                          vIsForm is "Task"

if the result of (aActionMapping.findForward(vWorkForwardName) == null)
then assign vForwardName to vIsForm(from above)
else assign vForwardName to value of variable vWorkForwardName

Nez pas?
Martin--
----- Original Message ----- From: "temp temp" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Thursday, March 30, 2006 3:46 PM
Subject: [java:Conditional Operators]


I did not understand the following code with multiple conditional operators.
         boolean vIsForm=true;
String vForwardName = (aActionMapping.findForward(vWorkForwardName) == null)
             ? (vIsForm) ? "form" : "task"
             : vWorkForwardName;

 Can some body explain me how to read the above code?
 Thanks & Regards



---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to