tracker issue : CF-4198849

select a category, or use search below
(searches all categories and all time range)
Title:

writeoutput cannot use cfscript operators e.g. ==/>/<

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Chris Hopkins / Chris Hopkins ()

Created: 06/12/2017

Components: Language, Functions

Versions: 11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: update 12 /

Priority/Frequency: Normal / All users will encounter

Locale/System: / Windows 10 64 bit

Vote Count: 1

Problem Description:

Writeoutput cannot have statements inside it using standard operators e.g. ==/>/< you can only use CF's GT/LT/EQ. This runs against being able to use them in cfscript.

Steps to Reproduce:
{code:java}
<cfscript>
writeOutput(" is one greater than zero #1 > 0# ");
writeOutput(" is one greater than zero #(1 > 0 ? "hell yeah" : "hell no")#  ");
</cfscript>
{code}

Actual Result:
Invalid CFML construct found on line # at column #. on line #

Expected Result:
is one greater than zero YES is one greater than zero hell yeah

Any Workarounds:
use GT/LT/EQ

Attachments:

Comments: