Re: [java:Conditional Operators]

2006-03-31 Thread Martin Gainty
Agreed..I like to simplify the situation to make it maintainable- Thanks, Martin- - Original Message - From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, March 30, 2006 3:52 PM Subject: RE: [java:Conditional Operators

Re: [java:Conditional Operators]

2006-03-30 Thread Martin Gainty
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 ass

Re: [java:Conditional Operators]

2006-03-30 Thread Michael Jouravlev
On 3/30/06, temp temp <[EMAIL PROTECTED]> wrote: > I did not understand the following code with multiple conditional operators. > boolean vIsForm=true; > String vForwardName = (aActionMapping.findForward(vWorkForwardName) > == null) > ? (vIsForm) ? "form" : "task"

RE: [java:Conditional Operators]

2006-03-30 Thread Slattery, Tim - BLS
> I did not understand the following code with multiple > conditional operators. > boolean vIsForm=true; > String vForwardName = > (aActionMapping.findForward(vWorkForwardName) == null) > ? (vIsForm) ? "form" : "task" > : vWorkForwardName; > >