Like Function

admin

Administrator
Staff member
I'm sure this is probably a very basic JS thing I should already know, but I've never had to use it before, so I apologize in advance for my ignorance. Does anyone know what the syntax is for 'like' or 'contains'? i.e. if (myvar like '***') OR if (myvar contains '***'). I'm assuming it's similar to (if not the same as) C++ but I haven't done that in years, I only recall (i think) using %. If anyone can help me out, I'd appreciate it. Thanks so much!
 
Back
Top