Copy link to clipboard
Copied
can anyone see why this always returns false regardless of ObservedType??
<cfset isNullfwdExtraWindow = false>
<cfif arguments.trade.ObservedType eq 'C'>
isNullfwdExtraWindow = true>
</cfif>
<cfif arguments.trade.ignoreBarrierStyleAndObserved>
isNullfwdExtraWindow = true>
</cfif>
nikos101 wrote:
can anyone see why this always returns false regardless of ObservedType??
<cfset isNullfwdExtraWindow = false>
<cfif arguments.trade.ObservedType eq 'C'>
isNullfwdExtraWindow = true>
</cfif>
<cfif arguments.trade.ignoreBarrierStyleAndObserved>
isNullfwdExtraWindow = true>
</cfif>
This code misses the cfset tag. You could try something like
<cfset isNullfwdExtraWindow = false>
<cfif trim(arguments.trade.ObservedType) eq 'c' OR arguments.trade.ignoreBar
...Copy link to clipboard
Copied
When in doubt, look at your data. My technique is:
if (something)
output yes
else
output no and whatever I was checking.
By the way, what is this checking - <cfif arguments.trade.ignoreBarrierStyleAndObserved> ? Is that a boolean variable?
Copy link to clipboard
Copied
nikos101 wrote:
can anyone see why this always returns false regardless of ObservedType??
<cfset isNullfwdExtraWindow = false>
<cfif arguments.trade.ObservedType eq 'C'>
isNullfwdExtraWindow = true>
</cfif>
<cfif arguments.trade.ignoreBarrierStyleAndObserved>
isNullfwdExtraWindow = true>
</cfif>
This code misses the cfset tag. You could try something like
<cfset isNullfwdExtraWindow = false>
<cfif trim(arguments.trade.ObservedType) eq 'c' OR arguments.trade.ignoreBarrierStyleAndObserved>
<cfset isNullfwdExtraWindow = true>
</cfif>
Copy link to clipboard
Copied
thanks BKBK!
bad compiler!