jo-anne.brandes Posted April 28, 2015 Posted April 28, 2015 I am trying to use the following if/else statement but I think the double quotes in the JSON are causing issues and I'm not sure the proper syntax to get this work correctly. I'm a jasper/groovy newb. $F{PAYMENT_METHOD_DATA} == '{"deposit_name":"PayNearMe","is_important":true,"logo":"https://nj-cdn-casino.ballyinteractive.com/cms/V3/Deposit-Methods/icon-Paynearme.png"}' ? "PayNearMe" :$F{PAYMENT_METHOD_DATA} == '{"deposit_name":"ACH (Optimal)","withdrawal_name":"ACH (Optimal)","display_order":"101","is_important":true}' ? "ACH" :$F{PAYMENT_METHOD_DATA} == '{"deposit_name":"wire transfer","withdrawal_name":"wire transfer","display_order":"42","is_important":true}' ? "Wire Transfer" :$F{PAYMENT_METHOD_DATA} == '{"deposit_name":"Personal check","withdrawal_name":"Personal check","display_order":"6","is_important":true}' ? "Personal Check" :$F{PAYMENT_METHOD_DATA} == '{"deposit_name":"Cashier''s check","withdrawal_name":"Cashier''s check","display_order":"7","is_important":true}' ? "Cashiers Check": "Cash" Thanks,Jo
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now