Click or drag to resize
MvValueAsBoolean Method
Converts to bool.

Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 6.3.0.0 (0.8.0.0)
Syntax
public bool AsBoolean(
	bool direct = false,
	bool def = false
)

Parameters

direct (Optional)
Type: SystemBoolean
If true, an exact type match is required.
def (Optional)
Type: SystemBoolean
The default result.

Return Value

Type: Boolean
If the match is exact, the contained value. Otherwise, and if an exact type match is not required: If the type is user-defined, the result of
asUserValue.asBoolean(def)
.If the type is numeric (including char), true if different from 0), false otherwise.Otherwise, true if the value is not null, false otherwise.
See Also