The ifMatch() method checks to see if one string matches another (case-sensitive) and then returns a result depending on whether they match or not. It is customizable.
Browser support: all
TheMadScript version: 2.0.0
Syntax: ifMatch(value1,value2,result1,result2)
The syntax below checks if the word "Heat" matches "heat" case-sensitive and alerts you if they match:
ifMatch("Heat","heat","box_alert('They match.')","box_alert('They do not match.')");
No comments:
Post a Comment