Quote:
Originally Posted by leeperry
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.