List of all the commands that can be used with cfscript

Hello,
I looked on this website dev.lucee.org for a list of all the commands that can be used in cfscript. But I only found the CF tags: Tags :: Lucee Documentation
When I search on Google I come across individual commands such as “If” etc. But where can I find a list like the one for the CF tags? If there isn’t something like that here, does someone have a link to another website?

Checkout the cfdocs cfscript guide, it has a bunch of good links as well:

And ofcourse this was mentioned here the other day, but cfscript.me will do some auto conversion of tag to script for you. It’s not perfect (sometimes there is a better way to convert it), but can be a good learning tool as well.

Pete Freitag
Foundeo Inc.

5 Likes

Also, for the most part, if you just drop the cf off of a tag, you can use it in script. Example:

<cfhttp method="post">
    <cfhttpparam type="header" />
    <cfhttpparam type="url" />
    <cfhttpparam type="url" />
</cfhttp>

… becomes (without the cf):

http method = "post" {
    httpparam type="header";
    httpparam type="url";
    httpparam type="url";
}

Doing custom tags gets a little funky - but, I think you just use the _ pefix instead of cf_.

4 Likes

Thank you both!

1 Like