View Single Post
Old 18th June 2009, 14:20   #5  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by leeperry View Post
nice! so basically this could be used w/ mod2 only scripts? if not mod2 > add padding lines?
Yes, although you could probably do this just as easily with the standard conditional operator (... ? ... : ... ).
EDIT: as Didée has just shown!

Where the extended 'if' becomes really useful is when you need to write more than one statement in one of the conditional 'branches'.
Without GScript, you are limited to the rather messy techniques described here, which can't be easily nested. See also here.

Last edited by Gavino; 18th June 2009 at 14:22. Reason: Didée's answer
Gavino is offline   Reply With Quote