I tested on both - 1.2 and nightly build 2010-02-03. It's the same behavior.
On Feb 3, 4:11 pm, Matthew Woodward <[email protected]> wrote: > Are you using one of the nightly builds, or 1.2 final? > > > > > > On Wed, Feb 3, 2010 at 2:00 PM, nabuage <[email protected]> wrote: > > I am wondering if the var keyword or local scope variable is > > implemented correctly when being used inside cfscript. Or maybe there > > is a different way of using it in OpenBD (compared to Adobe > > ColdFusion). > > > Here's a sample code to test (saved as .cfm file): > > > <cfscript> > > writeoutput(getPizza()); > > > function getPizza(){ > > var ret = "no pizza"; > > if (1 equals 1){ > > ret = "pizza"; > > //return ret; //Returns "pizza" > > } > > return ret; //Returns "no pizza" > > } > > </cfscript> > > > -- > > Open BlueDragon Public Mailing List > > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon > > mailing list -http://groups.google.com/group/openbd?hl=en > > > !! save a network - please trim replies before posting !! > > -- > Matthew Woodward > [email protected]http://blog.mattwoodward.com > identi.ca/Twitter: @mpwoodward > > Please do not send me proprietary file formats such as Word, PowerPoint, > etc. as attachments.http://www.gnu.org/philosophy/no-word-attachments.html -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
