Justinefal Posted December 19, 2006 Share Posted December 19, 2006 Hi!which sintax is corrected? new Boolean(($P{Visualizza}.equals(“Sâ€)) ? “Yes†: “Noâ€)new Boolean($F{StsValue}.equals("01") ? Boolean.FALSE: Boolean.TRUE )new Boolean($P{Visualizza}.equals("01") ? "FALSE": "TRUE" ) HELP ME justine Link to comment Share on other sites More sharing options...
partha Posted December 19, 2006 Share Posted December 19, 2006 First of All, the parameter/Fields type is very important. I am assuming that $P{...}.equals("a_string") actually returns a boolean. Then you can use this: $P{...}.equals("a_string")?Boolean.TRUE:Boolean.FALSE Link to comment Share on other sites More sharing options...
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