on 10-12-2006 4:44 PM
Hi I would like to use a function where I can say "OR"
I have tried the boolean one but it doesn't work for Words.
SO I have QUALF----> Equals
I want qualf to be equal to WE or ZE or AG etc
How do I do this. Can someone tell me the Java Code to write such a function
Hi Thanks for your input.
When ever I do something like this I get an error like this
Cannot cast ZU to boolean
I know this must be simple but all I want to do is say if QUALF IS EQUAL to ZU, AG, RE, RS, WE then return value TRUE.
I have it half done by using text function equals with QUALF going into one input.
What I need is a way of inputing several values in the opther input. So the result will return TRUE if QUALF is equal to any of the 4-5 input values I have.
I have tried to use the boolean OR function but it returns
Cannot cast ZU to boolean
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you people this seems to of done the trick. You guys are great I really appreciate your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use "fixValues"
WE, ZE, AG are mapped to true, default is false.
Boolean values are treated internally as Strings "true" and "false".
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys,
Thank you for your input.
I was looking for the function code to put into the XI Mapping so I could create my own function code.
Basically I would like to have say 5 inputs and one output.
So the five inputs could be what ever constants i define. Basically the function is to say either one of the inputs are ok.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
This will help you
http://java.sun.com/developer/codesamples/
http://www.idevelopment.info/data/Programming/java/PROGRAMMING_Java_Programming.shtml
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
if( (QUALF==WE) || (QUALF==ZE) || (QUALF==AG) )
is this what you had in mind? <b>|| </b>is the or operator in java
Regards,
Harsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.