Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

coldfusion check if key exists and not empty

<cfset arrayOfStructs = deserializeJson(jsonJobsOpen)>
<cfloop array="#arrayOfStructs#" index="thisValue">
    <!--- Now you can use this condition to check for empty values --->
    <cfif StructKeyExists(thisValue, "JOBID") and Len(thisValue.JOBID) GT 0>
    ... 
</cfloop>
 
PREVIOUS NEXT
Tagged: #coldfusion #check #key #exists #empty
ADD COMMENT
Topic
Name
8+5 =