I'm using the XDEVAPI and trying to use the or(||) statement in javascript, but it seems to break after 1 or/(||) statements, I have 5 separate statuses I'm trying to pull from the DB:
.select(['customer_name',
'account_status',
])
.where('customer_name like :customer_name && account_status like :account_status || account_status like :account_status || account_status like :account_status')
.bind('customer_name', customer_name)
.bind('account_status', 'Some_Status_1')
.bind('account_status','Some_Status_2')
.bind('account_status', 'Some_Status_3')
.execute()
Can I use REGEXP 'Some_Status_1'|Some_Status_2'| etc?
If so what would the syntax be?
Or is there another method that I am missing.
Thanks for any help you can offer.