<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022114" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022114</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/what-called-ternary-operator#comment-1136379</link>
    <description> &lt;p&gt;I wasn&#039;t around for 65, on the wrong side for 77, lucky me, moved back for 03. &lt;/p&gt;
&lt;p&gt;I was trying to find out what it was called because I couldn&#039;t dig up information without the real term. I wanted to see if I could, er, force it to do something else. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt; (I can&#039;t -- but I figured it out anyway).&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Aug 2003 16:30:43 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1136379 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/what-called-ternary-operator#comment-1136370</link>
    <description> &lt;p&gt;Hi Suzanne,&lt;/p&gt;
&lt;p&gt;   It&#039;s the same in javascript:&lt;/p&gt;
&lt;p&gt;   var myVar = (conditional) ? trueStatement : falseStatement;&lt;/p&gt;
&lt;p&gt;btw: that makes 3 blackouts for me (65,77,03) &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
Vinny&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Aug 2003 10:51:48 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1136370 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/what-called-ternary-operator#comment-1136350</link>
    <description> &lt;p&gt;It seems rather handy. I&#039;m playing around with it to make the code a little more sensible. All the if/else statements get a little l-o-o-o-n-g for short things.&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Aug 2003 01:41:17 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1136350 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/what-called-ternary-operator#comment-1136349</link>
    <description> &lt;p&gt;lol&lt;/p&gt;
&lt;p&gt;It operates exactly like this:&lt;br /&gt;
if (condition) { true_statement } else { false_statement }&lt;/p&gt;
&lt;p&gt;I find it very usefull for inline conditions.  For example, making things plural...&lt;br /&gt;
echo $months.&#039; month&#039;.($months==1 ? &#039;&#039; : &#039;s&#039;);&lt;/p&gt;
&lt;p&gt;possible ouputs:&lt;br /&gt;
0 months&lt;br /&gt;
1 month&lt;br /&gt;
2 months&lt;br /&gt;
3 months&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Aug 2003 01:39:57 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1136349 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/what-called-ternary-operator#comment-1136347</link>
    <description> &lt;p&gt;ternary operator is what it&#039;s called. Whee! nevermind. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://uk.php.net/language.operators.comparison&quot; class=&quot;bb-url&quot;&gt;http://uk.php.net/language.operators.comparison&lt;/a&gt; for more info (it&#039;s the example)&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Aug 2003 01:36:54 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1136347 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
