Log in

View Full Version : whats the point in this?


gavo
10th January 2005, 04:43
If you want to add multiple filters to run one after another, you can put them on a single line using this syntax: filter_1().filter_2() ?? Why would you want to do that?

stickboy
10th January 2005, 04:48
See this thread:
What exactly do "combos" do? (http://forum.doom9.org/showthread.php?s=&threadid=87706)

It's mostly a matter of style.

In a few cases it's heads-and-shoulders the most convenient and readable form to use. Compare:clip = flag ? clip.Filter1().Filter2().Filter3()
\ : clip.Filter4().Filter5()toclip = flag ? clip.Filter1() : clip.Filter4()
clip = flag ? clip.Filter2() : clip.Filter5()
clip = flag ? clip.Filter3() : clipor to:clip = flag ? Filter3(Filter2(Filter1(clip)))
\ : Filter6(Filter5(clip))