jkeri Posted July 24, 2017 Posted July 24, 2017 I am not a Java developer so I dont know the java well enough. My question is. I want to print a value of 'YES' when $F{NAME} is null and 'NO' when it is not null.
darth_fader Posted July 24, 2017 Posted July 24, 2017 Try this in your textFieldExpression, wherever you want to display that YES/NO<textFieldExpression><![CDATA[iF($F{FNAME} == NULL, "YES","NO")]]></textFieldExpression> Simple conditional, displays YES or NO depending on whether or not FNAME is null. The IF conditional works as follows: IF(testExpression, true, false)
Friendly User Posted July 24, 2017 Posted July 24, 2017 One more thing to add to the poster above is that NULL string is different from "" string which is an empty string. Make sure you actually do have nulls when testing that.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now