trace(s1 === s2); // true
trace(s1 === s3); // false
trace(s1 === n); // false
trace(s1 === b); // false
trace(s1 !== s2); // false
trace(s1 !== s3); // true
trace(s1 !== n); // true
trace(s1 !== b); // true
See also
,
,
,
! logical NOT operator
!= inequality operator
&& logical AND operator
||
,
,
logical OR operator
== equality operator
=== strict equality operator
" string delimiter operator
"text"
When used before and after characters, quotation marks (") indicate that the characters have a
literal value and are considered a string, not a variable, numerical value, or other ActionScript
element.
Availability: ActionScript 1.0; Flash Player 4
Operands
- A sequence of zero or more characters.
text : String
Example
The following example uses quotation marks (") to indicate that the value of the variable
yourGuess is the literal string
and not the name of a variable. The
"Prince Edward Island"
value of
is a variable, not a literal; to determine the value of
, the value of
province
province
yourGuess must be located.
var yourGuess:String = "Prince Edward Island";
submit_btn.onRelease = function() { trace(yourGuess); };
// displays Prince Edward Island
See also
,
String
String function
Operators
187
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?