Filter vs Condition

Expelliarmus

Where to change the sig?
Reaction score
48
This isn't really an important question... but

- What is the main difference between Filter() and Condition()?
- Do they do the same thing?
- Where do they usually appear in?
- How can you tell which to use at different times

Thanks:)
 

Builder Bob

Live free or don't
Reaction score
249
As far as I know, there is no difference other than the name.

Maybe some times it makes more sense in your code to use one over the other because of the naming.
 

cleeezzz

The Undead Ranger.
Reaction score
268
for me, it only makes sense to use filters in functions that ask for a boolexpr

like... GroupEnumUnitsInRange
 

saw792

Is known to say things. That is all.
Reaction score
280
Well, Filter() returns a filterfunc (native filterfunc extends boolexpr) and Condition() returns a conditionfunc (native conditionfunc extends boolexpr). So as you can see, both extend boolexpr, and thus are valid as boolexpr. No function actually takes a specific filterfunc or conditionfunc, they all take boolexpr.
 

Romek

Super Moderator
Reaction score
964
I use filter because it's faster to type and shorter :)

Otherwise there is no difference at all.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top