on 03-28-2010 8:56 PM
I need to create an expression for a text variable.
The expression shold be a simple if-then-else construct:
if the value of a numeric context variable is > 100, the expression returns the string "AAA", otherwise it returns the string "BBB".
I made several tries with the expression editor, but unsuccessfully. I also didn't find any document explaining how to do.
Please provide an example of such an expression.
Thanks in advance.
Livio
Are you using 7.1 or 7.2 CE version?
There are a little bit more built-in functions in CE 7.2 and you are able to user something like: IF(MainContext/DeadLineBeforeDays > 100, ("AAA"), ("BBB"))
Otherwise, yes, you have to write a custom EJB function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Livio,
The if-then-else construct is not a normal function as its input parameters are functions rather than values, so it cannot be provided as built-in function.
You can create a custom Mapping Function that evaluates your "numeric context variable " and returns either "AAA" or "BBB".
Regards
Ivo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.