Skip to content

Instantly share code, notes, and snippets.

@hyzhak
Created August 3, 2011 15:51
Show Gist options
  • Save hyzhak/1122978 to your computer and use it in GitHub Desktop.
Save hyzhak/1122978 to your computer and use it in GitHub Desktop.
Create a variable right inside an expression
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