PDA

View Full Version : Type of expressions


pm771
07-30-2008, 05:06 PM
If this is another RTFM case, please point me in the right direction.

What is the type of the expression like this: someString == "Yep". Is it Boolean by default?

When we write a cast like Boolean(someString == "Yep"), where are we casting from?

TIA, Eugene

senocular
07-30-2008, 05:18 PM
its boolean. Casting using Boolean() in that context is usually just for clarity.
http://livedocs.adobe.com/flex/3/langref/operators.html#equality