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 !!

Reply via email to