View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 03-03-2014 , 10:27   Re: [TF2] QueryClientConVar cl_downloadfilter
Reply With Quote #7

Quote:
Originally Posted by sheo View Post
You should replace "StrContains("all", cvarValue) ? true : false;" by "StrContains("all", cvarValue) != -1 ? true : false;"
Not sure if necessary, but adding parentheses may also help keep clean code
Code:
new bool:bStatement = (StrContains("all", cvarValue) != -1) ? true : false;
Mitchell is offline