blueman378 Posted May 6, 2009 Share Posted May 6, 2009 Hi guys, i accidentially typed in one of these operators and it worked, so im wondering what it is acctually doing. Heres a table i made, maybe someone knows or can gather what <+ and +- means ---------------------------------------------------- POSITIVES "<" ---------------------------------------------------- if( 3 <+ 3 ) false if( 3 <- 3 ) false if( 3 <+ 2 ) false if( 3 <- 2 ) false if( 3 <+ 1 ) false if( 3 <- 1 ) false if( 2 <+ 3 ) true if( 2 <- 3 ) false if( 1 <+ 3 ) true if( 1 <- 3 ) false <+ only true if first number less than than second <- never true? ---------------------------------------------------- NEGATIVES "<" ---------------------------------------------------- if( -3 <+ -3 ) false if( -3 <- -3 ) true if( -3 <+ -2 ) true if( -3 <- -2 ) true if( -3 <+ -1 ) true if( -3 <- -1 ) true if( -2 <+ -3 ) false if( -2 <- -3 ) true if( -1 <+ -3 ) false if( -1 <- -3 ) true <+ only true if second number is less than first <- always true? Link to comment https://forums.phpfreaks.com/topic/157038-solved-what-are-the/ Share on other sites More sharing options...
Ken2k7 Posted May 6, 2009 Share Posted May 6, 2009 They're just for numbers. - = negative, + = positive. So like -3 = negative 3. Link to comment https://forums.phpfreaks.com/topic/157038-solved-what-are-the/#findComment-827233 Share on other sites More sharing options...
blueman378 Posted May 6, 2009 Author Share Posted May 6, 2009 i know what - and + are, but when used in combonation with the < inside an if statment what is the condition? eg <= condition is: less than or equal to, So what is <+ or <- Link to comment https://forums.phpfreaks.com/topic/157038-solved-what-are-the/#findComment-827239 Share on other sites More sharing options...
Ken2k7 Posted May 6, 2009 Share Posted May 6, 2009 They're nothing. You're just didn't put a space. It's like me doing this: if (3<-3) Are you going to take I did 3 <- 3 where <- is an operator? Link to comment https://forums.phpfreaks.com/topic/157038-solved-what-are-the/#findComment-827241 Share on other sites More sharing options...
blueman378 Posted May 6, 2009 Author Share Posted May 6, 2009 ah right, heh guess thats wht i get for being sleepy ae, CHeers. Link to comment https://forums.phpfreaks.com/topic/157038-solved-what-are-the/#findComment-827242 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.