Created
May 6, 2025 20:30
-
-
Save trycf/d85e1dc3223b22683d177aa348d388b7 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function getCredentials(pid){ | |
getDesignations = | |
[ | |
{ | |
"name": "MA" | |
}, | |
{ | |
"name": "RNC" | |
}, | |
{ | |
"name": "HEC-C" | |
} | |
]; | |
if(isArray(getDesignations) && arrayLen(getDesignations) > 0){ | |
_returnList = ''; | |
for(var des=1; des <= arrayLen(getDesignations); des++){ | |
_returnList = listAppend(_returnList, ' '&getDesignations[des]['name']); | |
} | |
return _returnList; | |
} | |
else{ | |
return ''; | |
} | |
} | |
writeDump(getCredentials('')); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment