hai all,
i want to do multiple operations depending on If condition in a Transformer stage. what are the delimiters used in between the if... then... else constraint i tried to my level, can someone guide me ?
want multiple operations executed in if condition
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard. There are no necessary delimiters. The entire If..Then..Else construct can be (and usually is) a single string.
The value generated by test_expression (true or false) determines whether the result of expression1 or the result of expression2 is the overall result of the If..Then..Else expression.
Code: Select all
If test_expression Then expression1 Else expression2The value generated by test_expression (true or false) determines whether the result of expression1 or the result of expression2 is the overall result of the If..Then..Else expression.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There are no assignments. For example
The parentheses are not necessary; I included them only for clarity.
Code: Select all
If (condition = 0) Then "A" Else If (condition = 1) Then "B" Else If (condition = 2) Then "C" Else "D"The parentheses are not necessary; I included them only for clarity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
</a>