dprogrammer Posted November 10, 2008 Share Posted November 10, 2008 Hi, I need little help in writing this simple expression:if parameter1=1 then 'Show Text1'if parameter1=2 then 'Show Text2'if parameter1=3 then 'Show Text3'else 'N/A'?Thanks in advance Link to comment Share on other sites More sharing options...
PlexPro Posted November 10, 2008 Share Posted November 10, 2008 dreporterWrote: Hi, I need little help in writing this simple expression: if parameter1=1 then 'Show Text1' if parameter1=2 then 'Show Text2' if parameter1=3 then 'Show Text3' else 'N/A'? Thanks in advance If you condition the printing of each of the three static text fields by parameter1.equals("n") where "n" is the appropriate value for that static text, that should work, no? René Link to comment Share on other sites More sharing options...
dprogrammer Posted November 10, 2008 Author Share Posted November 10, 2008 The values of the parameter are numerics, i-e 1,2, and 3. Based upon the value, the expression should show appropriate text. Did you mean that I create three static fields and then show/suppress them conditionally based upon "n" value? Yes, that's what currently I am doing but I was trying to achieve same through a single expression. Link to comment Share on other sites More sharing options...
lukus Posted November 11, 2008 Share Posted November 11, 2008 Hi dreporter, I think you're after something like the following. I havent tested this but it should get you on the right track. Cheers Lukus Code: Post Edited by Luke Cottier at 11/11/08 00:52 Link to comment Share on other sites More sharing options...
dprogrammer Posted November 11, 2008 Author Share Posted November 11, 2008 Lukus, this is exactly what I was looking for. I tried it and it works. There was an extra "?" at the end that I had to remove.Thanks!Post Edited by The Reporter at 11/11/08 16:28 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