Jump to content

Textfield expression. Conditional expression.


grotero

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 years later...

This is standard Java "In Line" IF THEN ELSE Statement

The syntax is

IF Condition ? Eval to TRUE : Eval to FALSE

The key parts are the "?" and the ":" Question Mark after the Boolean condition. Colon between the TRUE/FALSE results.

You can also nest these statements together eg

IF Condition1 ? Result 1 TRUE : IF Condition 2 ? Result 2 TRUE : Result 3 FALSE

In anser to your Question you need ELSE! add : and a False result.

$F{TR}!=43?$F{Product}:F${TR}

You may need to structure your Logic to account for BOTH true and false results.

Luck!

Link to comment
Share on other sites

  • 7 years later...

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