# cfscript

Encloses a code block that contains cfscript statements.

 You cannot use some CFML reserved words in this tag. You
 cannot put a user-defined function whose name begins with any
 of these strings within this tag:
 cf,cf_,_cf,CFML,CFML_,_CFML




### Syntax

```
<cfscript> 
```







## CFML Engine Support

The cfscript tag is supported on the following CFML engines:

| Engine | Minimum Version | Notes |
| --- | --- | --- |
| ColdFusion | 4 |  |
| Lucee |  |  |




## Examples


### Script Syntax



```
<cfscript> 
 x = y = 1; 
 writeDump(x); 
 </cfscript>
```



### semi-colons are optional (CF2018+)

CF2018+ Optional to use semicolons at the end of a statement.

```
<cfscript> 
 a = 5 
 b = 10 
 writeDump(a+b) 
 </cfscript>
```
Expected Result: 15





## Related Tags and Functions

[cfoutput](https://cfdocs.org/cfoutput.md)




The human version of this document can be found here: [https://cfdocs.org/cfscript](https://cfdocs.org/cfscript) which is part of the cfdocs.org repository. Project created by [Pete Freitag](https://www.petefreitag.com) and sponsored by [Foundeo Inc.](https://foundeo.com/)
