View Single Post
thecount
Veteran Member
Join Date: Jul 2013
Old 12-06-2015 , 13:56   Re: [SP]| somevar != someconst ? return -7 : null | and got invalid expresion
Reply With Quote #10

Quote:
Originally Posted by fakuivan View Post
So, there is no clean way to solve this.
You can't use 'return' in an expression like that. Best way to get around this is to, god forbid, use an if statement.
PHP Code:
if(somevar != someconst){ return 7; } 

Last edited by thecount; 12-06-2015 at 13:57.
thecount is offline