Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | alexzheng |
if the variable is not defined in the node, access it will crashed, how can I check if a variable is defined in the node?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | alexzheng |
if the variable is not defined in the node, access it will crashed, how can I check if a variable is defined in the node?
Reply From: | kidscancode |
You can use in
for this:
if 'property_name' in $SomeNode:
print("property exists!")
Thanks,it works
alexzheng | 2018-05-31 23:21