Basic Grammar in ColdFusion


I would like to share basic grammar in ColdFusion.

😼 How ColdFusion Work

ColdFusion code is compiled into Java byte-code. ColdFusion is made up of two parts:

  • ColdFusion Application Server
  • ColdFusion Markup Language (CFML)

🐮 What is ColdFusion Markup Language

  • The ColdFusion Markup Language (CFML) looks similar to HTML in which is tag-based.(e.g, )
  • CFML is also includes fully functionally built-in scripting language similar to JavaScript

🍄 Cheat Sheet for Basic Grammer

Variables





#URL.greet#

Comment



Builtin Functions

ColdFusion has a lot of functions for performing all sort of tasks, etc.

#DateFormat(Now(),"dddd, mmmm d, yyyy")#

If you want to know more detail, please see ColdFusion functions by category

Arithmetic and String Operation

ColdFusion has some Arithmetic and String Operations:






If you want to know more detail, please see Expressions-Developing guide

Conditional Processing







Quantity is 1
Quantity is not 1

List



#num#

If you want to know more detail about List functions, please see List functions

Array







#beatles[i]#










#rockbands[i][j]#



If you want to know more detail about Array functions, please see Array functions

Form

HTML with form:












Receive form data:


Your name: #FORM.yourname#

cfform tag supports validation:

Suffix Description
numeric Accept only Numeric input
require Check that the value exists
email Valid email address

🎳 Next

TOBED

https://www.webucator.com/tutorial/learn-coldfusion/database-access-authentication/a-database-less-login-form-reading.cfm#tutorial

🗻 Special Thanks

🖥 Recommended VPS Service

VULTR provides high performance cloud compute environment for you. Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour). In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!