On Thursday 03 August 2006 08:03, Rushowr wrote:
> Use the ISNULL function. ISNULL will return a value of 1 if the string it's
> fed contains data. Example:
>
> If you set VARNAME=foo, and then grab the value of ${ISNULL(${VARNAME})},
> it will be 0 because VARNAME has data


Just for clarification... ISNULL returns nonzero if the variable is null.  
e.g. Set(VAR=foo); ISNULL(${VAR}) evaluates to false (0).  Set(VAR=); 
ISNULL(${VAR}) should evaluate true (1).

Your first and second sentences are at odds.  :-)

-A.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to