User Guide
306 Chapter 2: ColdFusion Tags
xlatstring = ws.BabelFish("en_es", "Hello world, friend");
writeoutput(xlatstring);
</cfscript>
For more information, see Chapter 32, “Using Web Services,” in Developing ColdFusion MX
Applications.
Example
<p>This simple example shows variable declaration and manipulation.
<cfif IsDefined("form.myValue")>
<cfif IsNumeric(form.myValue)>
<cfset x = form.myValue>
<cfscript>
y = x;
z = 2 * y;
StringVar = form.myString;
</cfscript>
<cfoutput><p>twice #x# is #z#.
<p>Your string value was: <b><I>#StringVar#</i></b></cfoutput>
<cfelse>