check variable for undefinedness

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 11 23:49:06 PST 2015


On Saturday, 12 December 2015 at 07:39:47 UTC, Suliman wrote:
>> if(a is null)
>
> How to check if variable "is not null" ?

a !is null
or
!(a is null)



More information about the Digitalmars-d-learn mailing list