-
1. Re: How can I write multiple "Set" operations in THEN statement
Matthias Goossens Jan 23, 2017 11:32 PM (in response to Anuj Vaijapurkar)1 of 1 people found this helpfulHey Anuj,
Try this:
IF "Status" = Include All AND Field 1 = "value x" AND Field 2 = "value y" AND Field 3 = "value z"
THEN
1
ELSEIF "Status" = Include None AND Field 10 = "value PQRST" AND Field 20 = "value XYZ" AND Field 30 = "value ABCD"
THEN
1
END
Cheers,
Matthias
-
2. Re: How can I write multiple "Set" operations in THEN statement
Shinichiro MurakamiJan 23, 2017 11:36 PM (in response to Anuj Vaijapurkar)
Hi Anuj
Not exactly sure, but something like this?
[Calculation1]
IF [Status] = "Include All"
THEN
(if [Set Field]="Field 1" then "value x"
elseif [Set Field]="Field 2" then "value y"
elseif [Set Field]="Field 3" then "value z" end)
ELSE
(if [Set Field]="Field 10" then "value PQRST"
elseif [Set Field]="Field 20" then "value XYZ"
elseif [Set Field]="Field 30" then"value ABCD" end)
END
Thanks,
Shin
-
If then _SM_9.3.twbx 12.0 KB
-
-
3. Re: How can I write multiple "Set" operations in THEN statement
Anuj Vaijapurkar Jan 24, 2017 12:04 AM (in response to Matthias Goossens)Hi Matthias,
A BIG thank you!
It worked perfectly as expected!
Have a great time ahead!
-
4. Re: How can I write multiple "Set" operations in THEN statement
Anuj Vaijapurkar Jan 24, 2017 12:16 AM (in response to Shinichiro Murakami)Hi Shin,
You have suggested another nice approach to my issue. Many many thanks for this.
Have a great time ahead!