Join Slack
Communities
Powered by
anyone know what is equivalent of the contains in ...
# lucee
g
gsr
05/11/2022, 11:17 PM
anyone know what is equivalent of the contains in cf2018, this code only seems working in cf2021
Copy code
if(element.data().contains("edge_media")) {
error i am getting on 2018 is:
g
Gareth
05/11/2022, 11:21 PM
what is data() returning ? a string ? you could do if ( element.data() CONTAINS "edge_media" or use findNoCase ?
👍 1
a
Adam Cameron
05/11/2022, 11:37 PM
@gsr
did you google "cfml check if one string contains another string"?
Adam Cameron
05/11/2022, 11:38 PM
And why are you asking a CF2018 question in the Lucee channel?
g
gsr
05/11/2022, 11:38 PM
oops, my bad for this,
Open in Slack
Previous
Next