Expression filter to remove specific player(s) from report?

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Expression filter to remove specific player(s) from report?

Postby Chris1234 » Wed Dec 14, 2022 1:23 pm

Is there an expression filter I can add to remove specific players from an all player report?

If I want to only include specific players I use the following: player.player_name = 'PlayerName' (followed by 'OR' to add multiple players). I tried using player.player_name = NOT 'PlayerName' (or variations on that) to exclude certain aliases, but I couldn't find anything that would work.
Chris1234
 
Posts: 15
Joined: Sun Nov 10, 2013 6:53 pm

Re: Expression filter to remove specific player(s) from repo

Postby Flag_Hippo » Thu Dec 15, 2022 6:42 am

Chris1234 wrote:I tried using player.player_name = NOT 'PlayerName' (or variations on that) to exclude certain aliases, but I couldn't find anything that would work.

The 'NOT' needs to go at the start:

Code: Select all
NOT player.player_name = 'PlayerName'

To exclude more than one player:

Code: Select all
NOT player.player_name = 'PlayerName1' AND NOT player.player_name = 'PlayerName2'
Flag_Hippo
Moderator
 
Posts: 17049
Joined: Tue Jan 31, 2012 7:50 am

Re: Expression filter to remove specific player(s) from repo

Postby Chris1234 » Thu Dec 15, 2022 2:17 pm

Thanks for that, much appreciated :)
Chris1234
 
Posts: 15
Joined: Sun Nov 10, 2013 6:53 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 13 guests