Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How do I check if a variable is defined? #89
What about negating this check?
In my case the variable
Is there a more succinct form e.g.
But if I want to check for a condition OR if the variable is not defined at all
I would prefer to write it in as few statements as possible because the code else if is large.
For anyone who stumbles here and - like me - was looking for this check in the context of a Jekyll list filter (e.g.
Unfortunately, it's pretty unclear from the language documentation what the difference between