Thread
:
[SP]| somevar != someconst ? return -7 : null | and got invalid expresion
View Single Post
fakuivan
Senior Member
Join Date: Nov 2015
12-06-2015 , 11:16 Re: [SP]| somevar != someconst ? return -7 : null | and got invalid expresion
#
6
Quote:
Originally Posted by
KissLick
PHP Code:
return (
somevar
!=
someconst
) ? -
7
:
0
;
I don't want to return 0, I want to do nothing if the condition evaluates to false
fakuivan
View Public Profile
Send a private message to fakuivan
Find More Posts by fakuivan