Tom Chiverton wrote:
> if (foo){
>       bar=a
> }else{
>       bar=b
> }
> b
>
> seems clearer to me than nested iif and de.
This is completely personal preference and a very very small matter.  
But I generally find less to be clearer then more.

------
<cfscript>
  if (foo) {
    bar='a';
} else {
    bar='b';
}
</cfscript>

<use_number #bar#>
-----
7 lines

VERSUS

-----
<use_number #iif(foo,DE('a'),DE('b'))#>
-----
1 line.

But each to his own.  I still wanted to know WHY it was not working and 
now I do.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296262
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to