PSPad scripting does support javascript, but at least in your sample the code
doesn't seem to be correct.
When calling this in a function I get the self-explaining error message "s1 is
undefined"

If s1 isn't defined somewhere else in your code, the condition s1 == null cannot
be checked; (using the ternary operator only makes this a bit less obvious).

hth,
  vbr

-- 
<http://forum.pspad.com/read.php?2,49549,49565>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem