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

print when expression


Justinefal

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can use the TextFieldExpression like this:

 

$F{field}.equals("Hello"} ? "then print Not Hello" : "else print this field: " + $F{field2}

 

(if the fields are both string)

 

if you want to test the field whether it is null or not, try

 

$F{field}==null ? "is null" : $F{field}

 

 

Hope that helps a bit

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...