Returns whether the specified strings are the same in value.
Syntax
equals( string1 , string2 )
string1.equals( string2 )
Parameters
string1
|
the string being compared.
|
string2
|
the string being compared to.
|
Returns
boolean
|
true if string1 equal to string2.
false if string1 is not equals to string2.
|
Example
if cmd.equals( "exit" ) then
break
end
|