DAStatics Functions Relevant to DABoolean Objects

And Creates a DABoolean that represents the logical AND of the given objects.
DABoolean Converts a Boolean to a DABoolean object.
KeyState Creates a DABoolean object that describes whether the key is up or down.
Not Creates a DABoolean object that represents the logical NOT of b.
Or Creates a DABoolean that represents the logical OR of the given behaviors.

And

DAStatics Class

Creates a DABoolean that represents the logical AND of the given objects. The object's value is TRUE when both b1 and b2 are TRUE; otherwise, it is FALSE.

Syntax

lib.And( b1, b2 )

Parameters

b1 and b2
DABoolean objects to logically AND.

Return Value

Returns the DABoolean object.

See Also

Or, Not

DABoolean

DAStatics Class

Converts a Boolean to a DABoolean object. The only time DABoolean is used is when converting Boolean values to their corresponding DABoolean objects.

Syntax

lib.DABoolean( bool )

Parameters

bool
Boolean to be converted.

Return Value

Returns the DABoolean object.

KeyState

DAStatics Class

Creates a DABoolean object that describes whether the key is up or down.

Syntax

lib.KeyState( keyCode )

Parameters

keyCode
DANumber representing a keycode.

Return Value

Returns the DABoolean object. The value is TRUE when the key is down and FALSE when the key is up.

Not

DAStatics Class

Creates a DABoolean object that represents the logical NOT of b. The object's value is TRUE when b is FALSE; otherwise, it is FALSE.

Syntax

lib.Not( b )

Parameters

b
DABoolean object that is negated.

Return Value

Returns the DABoolean object.

See Also

And , Or

Or

DAStatics Class

Creates a DABoolean that represents the logical OR of the given behaviors. The object's value is TRUE when either b1 or b2 is TRUE; otherwise it is FALSE.

Syntax

lib.Or( b1, b2 )

Parameters

b1 and b2
DABoolean objects to be logically OR'd.

Return Value

Returns the DABoolean object.

See Also

And, Not


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.