jtokach
(Seasoned Scripter)
2003-10-14 12:00 AM
Valid If Statement?

Shouldn't this be a valid statement...

if run('cmd')=0

Can someone tell me why it isn't or paste correct syntax.

Thanks!


Sealeopard
(KiX Master)
2003-10-14 12:01 AM
Re: Valid If Statement?

See the KiXtart Manual under RUN. RUN is a command and not a function and as such does not create a return value.

jtokach
(Seasoned Scripter)
2003-10-14 12:09 AM
Re: Valid If Statement?

hmmm... I see your point. =) I've been typing run() and shell() in function form forever and checking @error. I never put 2 and 2 together.

Looks like a function...
Smells like a function...
doh!