anyone know what is equivalent of the contains in ...
# lucee
g
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
what is data() returning ? a string ? you could do if ( element.data() CONTAINS "edge_media" or use findNoCase ?
👍 1
a
@gsr did you google "cfml check if one string contains another string"?
And why are you asking a CF2018 question in the Lucee channel?
g
oops, my bad for this,