Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to check if var exists python

# for local
if 'myVar' in locals():
  # myVar exists.
# for globals
if 'myVar' in globals():
  # myVar exists.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #var #exists #python
ADD COMMENT
Topic
Name
7+5 =