Created
August 3, 2011 15:51
-
-
Save hyzhak/1122978 to your computer and use it in GitHub Desktop.
Create a variable right inside an expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a:Number = 1; | |
var b:Number = 2; | |
var c:Number = 3; | |
if((a = b + c) > 1) | |
{ | |
trace("!"); | |
} | |
trace("a="+a); | |
trace("b="+b); | |
trace("c="+c); | |
/* результат | |
! | |
a=5 | |
b=2 | |
c=3 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment