Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/d85e1dc3223b22683d177aa348d388b7 to your computer and use it in GitHub Desktop.
Save trycf/d85e1dc3223b22683d177aa348d388b7 to your computer and use it in GitHub Desktop.
TryCF Gist
<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