Thread
:
[SP]| somevar != someconst ? return -7 : null | and got invalid expresion
View Single Post
thecount
Veteran Member
Join Date: Jul 2013
12-06-2015 , 13:56 Re: [SP]| somevar != someconst ? return -7 : null | and got invalid expresion
#
10
Quote:
Originally Posted by
fakuivan
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
View Public Profile
Send a private message to thecount
Find More Posts by thecount