Question
in-line if statements?
i'm trying to set a variable based on certain conditions...
in the past i've always done it like this:
<cfif x is true>
<cfset i = 5>
<cfelse>
<cfset i = 0>
</cfif>
now i know i can do an inline condition with php, but not sure if there is an equivalent in cf...for those familiar with php, this is what i'm after:
$i = ($x?5:0);
tia
in the past i've always done it like this:
<cfif x is true>
<cfset i = 5>
<cfelse>
<cfset i = 0>
</cfif>
now i know i can do an inline condition with php, but not sure if there is an equivalent in cf...for those familiar with php, this is what i'm after:
$i = ($x?5:0);
tia