on 06-13-2016 9:48 AM
Dear community,
Would anybody have the pleasure to answer my following question?
When I want to say "if "attribute" =TEXT VALUE, then give 0 otherwise 1"
How can I create the syntax of that?
I know that for declaring the attribute, I can put "quotation marks" but what about the text value? Do I also put quotation marks?
Thank you very much for your time
Kind regards
Vasilis
Hello Vasilis
If you use a constant in an expression, you must use two single quotation marks before and after the attribute value (for example, “constant”) or ''TEXT VALUE''.
Thanks
Parveen Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parveen,
Thank you for your response again!
Let's assume that :
Do I put both in attribute and attribute value a pair of single quotes back and forth?
Additionally, should I also put a second brucket in front of the attribute? e.g if (("PRODDESC")="RANDOM",0,1)
Regards
Vasilis
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.