Spec-Zone.ru › ColdFusion

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

<cfscript>

  • CF4+
  • Lucee
  • See Also: cfoutput

    Examples
    Sample code using the cfscript tag

    Script Syntax

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

    semi-colons are optional (CF2018+)

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

    <cfscript> 
     a = 5 
     b = 10 
     writeDump(a+b) 
     </cfscript>

    Expected Result: 15

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/cfscript

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API