Page 1 of 1 1
Topic Options
#77122 - 2003-10-14 12:00 AM Valid If Statement?
jtokach Offline
Seasoned Scripter
*****

Registered: 2001-11-15
Posts: 513
Loc: PA, USA
Shouldn't this be a valid statement...

if run('cmd')=0

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

Thanks!
_________________________
-Jim

...the sort of general malaise that only the genius possess and the insane lament.

Top
#77123 - 2003-10-14 12:01 AM Re: Valid If Statement?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
See the KiXtart Manual under RUN. RUN is a command and not a function and as such does not create a return value.
_________________________
There are two types of vessels, submarines and targets.

Top
#77124 - 2003-10-14 12:09 AM Re: Valid If Statement?
jtokach Offline
Seasoned Scripter
*****

Registered: 2001-11-15
Posts: 513
Loc: PA, USA
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!
_________________________
-Jim

...the sort of general malaise that only the genius possess and the insane lament.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.051 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org