|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reading values from an array. |
« View previous topic :: View next topic » |
Author |
Message
|
Kazim_Baig |
Posted: Tue Oct 18, 2016 5:06 am Post subject: Reading values from an array. |
|
|
Novice
Joined: 26 Apr 2016 Posts: 19 Location: Bangalore
|
Hi All,
Assume that I have an array which 'x' number of items. Now my requirement is, in an If else statement, I will read the items present in that array and based on the values I will proceed further. This can be achieved by keeping this If Else statement in a loop and increasing the index count from 1 to 'x'. But my question is, is there any way in esql where in I can compare the items in the array with my required parameter for executing the conditional statements? (some key word like EXISTS or CONTAINS) |
|
Back to top |
|
 |
Vitor |
Posted: Tue Oct 18, 2016 5:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
So if your array of 'x' items contains an instance of 'value', you perform a block of code otherwise you do not?
You might be able to achieve that with a combination of SELECT, THE & ITEM on the array. Experimentation will yield the truth of that statement; I'm not entirely confident there.
Someone else with a better idea will comment shortly. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
timber |
Posted: Tue Oct 18, 2016 5:20 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|