Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_GeneralGeneral Functions

Public Function mt_or_val (
varToTest As Variant,
EmptyVal As Variant
) As Boolean

Is the variable empty (Null, or empty string), or the passed value ?

varToTest as Variant

A variant value

EmptyVal as Variant

The empty comparison value

Call Template:

Dim b As Boolean
b = xf.Gen.mt_or_val(varToTest, EmptyVal)

See Also:

Example 1:

mt_or_0(Null, 23)   => True
mt_or_0("", 23)     => True
mt_or_0("0", 23)    => False
mt_or_0(0, 23)      => False
mt_or_0(23, 23)     => True
mt_or_0(False, 23)  => False
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd