<cfset>

Define a CFML variable. If the variable exists, cfset resets it to the specified value.

This tag cannot have a body.

This tag is also supported within <cfscript>

Attribute Description
noname
any, optional

Content of the tag set

<cfset #any noname#>

Examples

```lucee+trycf <cfset arr =["I Love Lucee"] > <cfset str.myVal ="Save water, Plant green" >

writeOutput("

Using CFscript

"); array=["this is sample array"]; struct.userVal=1; numb=1006; str="I'm String"; writeDump(var=array,label="Array");; writeDump(var=struct,label="Structure");; writeDump(var=numb,label="Integer"); writeDump(var=str,label="String");
```

See also