|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
Concatenation Operator
Is there a concatenation operator in CF? I've looked in my Forta book and at MM's docs and I can't find any reference.
What I really want to do is something like: Code:
<cfset myVar = "Some Text. "> <cfset myVar .= "More Text. "> <cfset myVar .= "Yet more text."> I'm using the PHP '.' in the above example. I've worked around this in the past, but it is going to be highly inconvenient if I have to just deal with it this time due to the nature of the dynamic string I'm trying to build. |
|
#2
|
|||
|
|||
|
The concatination operation is "&":
<cfset text = "Hello " & userName />
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Concatenation Operator |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|