ForumsProgramming ForumTUTORIAL: Boolean Data Types Tutorial [AS2]

1 5019
Dannydaninja
offline
Dannydaninja
948 posts
Nomad

Boolean: This Data Type contains the value null. This value means no value :P

Which basically means there is no data. You can use the Null value in a variety of ways to point out that a property or variable does not have an certain value assigned to it. The Null data type is the " default " data type for all the classes that classify ( define ) complex data types. The one exception to this important rule is the " Object class ", which defaults to undefined!

Here is an example of Boolean Data in a form field:

if (Selection.getFocus() == null) { trace("no selection"
}


Did you find this tutorial to difficult to understand or do you think It didn't give enough Info? Gimme feedack

  • 1 Reply
Dannydaninja
offline
Dannydaninja
948 posts
Nomad

I was going to do all Data types but It was time to go to bed XDDD

Showing 1-1 of 1