<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AS3 switch/case statement syntax</title>
	<atom:link href="http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tarek</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-51107</link>
		<dc:creator>Tarek</dc:creator>
		<pubDate>Sun, 30 Oct 2011 19:25:10 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-51107</guid>
		<description>@tugBut: You might certainly have figured it out already, but yes there is a way. Although it&#039;s easier to use if/then when you don&#039;t have to do anything when the value is 37, like the example below:

if (value != 37) {
  // your code
}

Otherwise, use this:

switch (your_number) {
  case 37:
    // your code for when your_number value = 37
    break;
  default:
    // your code for all other values
}</description>
		<content:encoded><![CDATA[<p>@tugBut: You might certainly have figured it out already, but yes there is a way. Although it&#8217;s easier to use if/then when you don&#8217;t have to do anything when the value is 37, like the example below:</p>
<p>if (value != 37) {<br />
  // your code<br />
}</p>
<p>Otherwise, use this:</p>
<p>switch (your_number) {<br />
  case 37:<br />
    // your code for when your_number value = 37<br />
    break;<br />
  default:<br />
    // your code for all other values<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tugBUT</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-33681</link>
		<dc:creator>tugBUT</dc:creator>
		<pubDate>Fri, 22 Jul 2011 02:52:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33681</guid>
		<description>How could I tell the switch to perform a action when a value is false? For instance:

case != 37:
blah blah

Any pre-built way to do this??? </description>
		<content:encoded><![CDATA[<p>How could I tell the switch to perform a action when a value is false? For instance:</p>
<p>case != 37:<br />
blah blah</p>
<p>Any pre-built way to do this??? </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mat</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-47413</link>
		<dc:creator>Mat</dc:creator>
		<pubDate>Thu, 24 Mar 2011 03:25:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47413</guid>
		<description>kawatan mog manok
</description>
		<content:encoded><![CDATA[<p>kawatan mog manok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mat</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-47412</link>
		<dc:creator>Mat</dc:creator>
		<pubDate>Thu, 24 Mar 2011 03:23:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47412</guid>
		<description>bahu mog ilong
</description>
		<content:encoded><![CDATA[<p>bahu mog ilong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rubixchick</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-46981</link>
		<dc:creator>Rubixchick</dc:creator>
		<pubDate>Tue, 08 Mar 2011 16:31:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46981</guid>
		<description>I have a question. So is break then a replacement for using if/else? Like would the alternative to this be, &quot;If a is selected then whatever&quot; else if &quot;b is selected, whatever&quot; else if neither a or b is selected, this happens instead.

</description>
		<content:encoded><![CDATA[<p>I have a question. So is break then a replacement for using if/else? Like would the alternative to this be, &#8220;If a is selected then whatever&#8221; else if &#8220;b is selected, whatever&#8221; else if neither a or b is selected, this happens instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liamsteele</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-42116</link>
		<dc:creator>Liamsteele</dc:creator>
		<pubDate>Sun, 05 Sep 2010 00:28:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42116</guid>
		<description>yes, rather than using a ; to signify an end of line, it uses a : to signify that the next section is different.
the : and break; act similarly to curly brackets in functions.
this description might not be 100% technically accurate, but it works ;D</description>
		<content:encoded><![CDATA[<p>yes, rather than using a ; to signify an end of line, it uses a : to signify that the next section is different.<br />
the : and break; act similarly to curly brackets in functions.<br />
this description might not be 100% technically accurate, but it works ;D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: American</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-41553</link>
		<dc:creator>American</dc:creator>
		<pubDate>Sun, 15 Aug 2010 15:14:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-41553</guid>
		<description>good tut, simple and to the point. I hate it when people post beginner tuts and end up adding WAY more info than anybody needs or whats to know. This was refreshing.</description>
		<content:encoded><![CDATA[<p>good tut, simple and to the point. I hate it when people post beginner tuts and end up adding WAY more info than anybody needs or whats to know. This was refreshing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lolwut?</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-40838</link>
		<dc:creator>lolwut?</dc:creator>
		<pubDate>Tue, 20 Jul 2010 03:09:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-40838</guid>
		<description>so is it cool that there is no ; at the end of the line in the default statement?</description>
		<content:encoded><![CDATA[<p>so is it cool that there is no ; at the end of the line in the default statement?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irritated</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-39874</link>
		<dc:creator>irritated</dc:creator>
		<pubDate>Wed, 16 Jun 2010 15:52:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39874</guid>
		<description>Stupid me.  (it&#039;s been a long day)

If (function()) </description>
		<content:encoded><![CDATA[<p>Stupid me.  (it&#8217;s been a long day)</p>
<p>If (function())</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irritated</title>
		<link>http://www.tech-recipes.com/rx/2369/as3_switch_case_statement_syntax/comment-page-1/#comment-39873</link>
		<dc:creator>irritated</dc:creator>
		<pubDate>Wed, 16 Jun 2010 15:50:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-39873</guid>
		<description>Stupid AS3.

If (function())   </description>
		<content:encoded><![CDATA[<p>Stupid AS3.</p>
<p>If (function())</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/17 queries in 1.039 seconds using memcached
Object Caching 416/419 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 02:53:41 -->
