Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to check if a field exists in a dictionry or not

You can check if a key exists and has a specific value in the dictionary by using the dictionary. items() method. The items() method will return a list of tuples with the available key pairs in the dictionary. Then you can use IF and IN with a tuple to check if it exists in the dictionary as shown below.
 
PREVIOUS NEXT
Tagged: #check #field #exists #dictionry
ADD COMMENT
Topic
Name
6+7 =