[asterisk-users] AEL: how to check if variable is defined

Philipp Kempgen philipp.kempgen at amooma.de
Mon Dec 29 15:13:40 CST 2008


Dave Fullerton schrieb:
> Philipp Kempgen wrote:

>> But I guess it wouldn't hurt to add a DEFINED() function to
>> Asterisk.
>> 
>> if (DEFINED(myvariable)) {
>>     // ...
>> }
>> 
> 
> Isn't that what EXISTS() is for?

Well, yes.  :-)
I've never needed it before and it didn't come to my mind.


   Philipp Kempgen

-- 
http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 



More information about the asterisk-users mailing list