SyntaxFix
Write A Post
Hire A Developer
Questions
You can directly check that a variable contains a value or not, like if var or not var.
if var
not var