<!--- variable passed for formatting was <cfoutput>#attributes.variable_value#</cfoutput><br><br> --->

<cfif attributes.credential GT "0">
	<cfset newvar = "("&#attributes.credential#>
	<cfset newvar = #Insert(")", newvar, "4")#>
	<cfset newvar = #Insert("-", newvar, "8")#>
<cfelse>
	<cfset newvar = "">
</cfif>

<cfset caller.formatted_phnum = #newvar#>