Raised This Month: $ Target: $400
 0% 

[ SOLVED ] FormatEX?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-14-2015 , 12:21   Re: [ HELP ] FormatEX?
Reply With Quote #1

PHP Code:
new var;
if(
== 1337)
    var = 
42;
else
    var = 
69
is equal to:
PHP Code:
new var = (== 1337 42 69); 
klippy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-14-2015 , 12:42   Re: [ HELP ] FormatEX?
Reply With Quote #2

This is called a conditional operator, inline if (iif), or ternary if. See here: https://en.wikipedia.org/wiki/%3F:.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode