Jump to content
We've recently updated our Privacy Statement, available here ×

Two expressions in Expression Variable


csilva2001

Recommended Posts

Hi. This is CarloSilva, from Brasil and I want a help. In my report if $F{A} == "this is A" I want report write "carlos alberto" and if $F{A} == "this is B" I want report write "maria jose". If $F{A} != "this is A" and $F{A} != "this is B" then write $F{A}´ value. Is it possible to code that in Expression Variable?

Can you help me?

 

An embrace

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi dnvsrikanth. Thanks for response. But dnvsrikanth, my problem is more hard. I need manager three options. See:

 

if $F{A} == "this is A" I want report write "carlos alberto"

 

if $F{A} == "this is B" I want report write "maria jose"

 

If $F{A} != "this is A" and $F{A} != "this is B" then write $F{A}´ value

 

OK? Please, again try help me.

An embrace.

Link to comment
Share on other sites

just try this one ...

Code:

$F{A} == "this is A"?"carlos alberto":«»($F{A} == "this is B"?"maria jose":«»(($F{A} != "this is A" && $F{A} != "this is B"«»)?$F{A}:""«»))

 

just a matter of setting the brackets right! :-)

 

hth

C-Box

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...