Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IN operator in groovy

Muhammad.RizwanSep 6 2014 — edited Sep 7 2014

Hi,

I am using jdev 11.1.2.4

how can i use groovy's IN operator in the following code to make it shorter?

#{bindings.PaymentModeCode.inputValue=='Cash'||bindings.PaymentModeCode.inputValue=='Cheque'||bindings.PaymentModeCode.inputValue=='Online'}

I want to make it like

#{bindings.PaymentModeCode.inputValue IN ['Cash','Cheque','Online']}

thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2014
Added on Sep 6 2014
5 comments
2,016 views